diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2007-12-05 13:06:04 +0000 |
---|---|---|
committer | Neil Booth <neil@daikokuya.co.uk> | 2007-12-05 13:06:04 +0000 |
commit | 06f20ea4baa4b6107638e863f2cf2c959ceaf8c0 (patch) | |
tree | c69dbc6b6358a53da8531a40149eb0ae66ca081d /llvm/lib/Support/APFloat.cpp | |
parent | 3ab004bca6c70b2a3861e7c67d715a9e82e1a3b2 (diff) | |
download | bcm5719-llvm-06f20ea4baa4b6107638e863f2cf2c959ceaf8c0.tar.gz bcm5719-llvm-06f20ea4baa4b6107638e863f2cf2c959ceaf8c0.zip |
Prior commit updated wrong if, apologies.
llvm-svn: 44614
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
-rw-r--r-- | llvm/lib/Support/APFloat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index f0707fc442e..5d2146d0747 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -263,7 +263,7 @@ namespace { } /* If number is all zerooes accept any exponent. */ - if (decDigitValue(*p) >= 10U) { + if (p != D->firstSigDigit) { if (*p == 'e' || *p == 'E') D->exponent = readExponent(p + 1); @@ -2145,7 +2145,7 @@ APFloat::convertFromDecimalString(const char *p, roundingMode rounding_mode) 42039/12655 < L < 28738/8651 [ numerator <= 65536 ] */ - if (*D.firstSigDigit == 0) { + if (decDigitValue(*D.firstSigDigit) >= 10U) { category = fcZero; fs = opOK; } else if ((D.normalizedExponent + 1) * 28738 |