Handle 0 correctly in string->APFloat conversion.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44594 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dale Johannesen
2007-12-05 01:10:19 +00:00
parent 7da75c5a40
commit db1e30272c

View File

@ -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