aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/APFloat.cpp
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-12-05 01:10:19 +0000
committerDale Johannesen <dalej@apple.com>2007-12-05 01:10:19 +0000
commitdb1e30272c06daba86c896e56a7d225a15c93b98 (patch)
treed67e16ebc1bffdfd936fbf38081a0179179b934c /lib/Support/APFloat.cpp
parent7da75c5a40ca8e433abb9cd9cb337b067a86d5da (diff)
Handle 0 correctly in string->APFloat conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44594 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APFloat.cpp')
-rw-r--r--lib/Support/APFloat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index b84f64a423..d713223a1e 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