diff options
| author | Dale Johannesen <dalej@apple.com> | 2007-12-05 01:10:19 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2007-12-05 01:10:19 +0000 |
| commit | 555616e6d46d285c3b1e19b2c73f9db58947a548 (patch) | |
| tree | d67e16ebc1bffdfd936fbf38081a0179179b934c | |
| parent | 7b8ad1cfd715f8ae5059a942254682a4b916028f (diff) | |
| download | external_llvm-555616e6d46d285c3b1e19b2c73f9db58947a548.zip external_llvm-555616e6d46d285c3b1e19b2c73f9db58947a548.tar.gz external_llvm-555616e6d46d285c3b1e19b2c73f9db58947a548.tar.bz2 | |
Handle 0 correctly in string->APFloat conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44594 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/Support/APFloat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index b84f64a..d713223 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp @@ -2145,7 +2145,7 @@ APFloat::convertFromDecimalString(const char *p, roundingMode rounding_mode) 42039/12655 < L < 28738/8651 [ numerator <= 65536 ] */ - if (*D.firstSigDigit == '0') { + if (*D.firstSigDigit == 0) { category = fcZero; fs = opOK; } else if ((D.normalizedExponent + 1) * 28738 |
