commit | 9d43e3d84137a86f9d176101cd97a45b35fbfd04 | [log] [tgz] |
---|---|---|
author | Dale Johannesen <dalej@apple.com> | Wed Dec 05 01:10:19 2007 +0000 |
committer | Dale Johannesen <dalej@apple.com> | Wed Dec 05 01:10:19 2007 +0000 |
tree | afee69185ab99d17673f9db74a36d1a93c76dda3 | |
parent | 90a7c12bb4e56de95d00a6e5ecf62ca7678f6094 [diff] [blame] |
Handle 0 correctly in string->APFloat conversion. llvm-svn: 44594
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index b84f64a..d713223 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp
@@ -2145,7 +2145,7 @@ 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