projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7da75c5
)
Handle 0 correctly in string->APFloat conversion.
author
Dale Johannesen
<dalej@apple.com>
Wed, 5 Dec 2007 01:10:19 +0000
(
01:10
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Wed, 5 Dec 2007 01:10:19 +0000
(
01:10
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44594
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/APFloat.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/APFloat.cpp
b/lib/Support/APFloat.cpp
index b84f64a4239d767380be93480b49802ccd0d5713..d713223a1e10600dbd02ae40ef1827f2d98717dc 100644
(file)
--- 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