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:
97e60d9
)
Remove undefined behavior in hex string->APFloat
author
Dale Johannesen
<dalej@apple.com>
Wed, 14 May 2008 22:05:31 +0000
(22:05 +0000)
committer
Dale Johannesen
<dalej@apple.com>
Wed, 14 May 2008 22:05:31 +0000
(22:05 +0000)
conversion. Try 0x1.0000a4p+0f. Neil, please review.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51132
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 187b108048a8b85200ffa2896a1102bde8247bec..de333829dae7e6a3b31133b7bd8ccb578d3a18ee 100644
(file)
--- a/
lib/Support/APFloat.cpp
+++ b/
lib/Support/APFloat.cpp
@@
-2003,7
+2003,7
@@
APFloat::convertFromHexadecimalString(const char *p,
firstSignificantDigit = p;
for(;;) {
- u
nsigned in
t hex_value;
+ u
int64_
t hex_value;
if(*p == '.') {
assert(dot == 0);