summaryrefslogtreecommitdiff
path: root/lib/Support
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2008-05-14 22:05:31 +0000
committerDale Johannesen <dalej@apple.com>2008-05-14 22:05:31 +0000
commit6a33cc12ebf43b569ceea591c53edd3d507ad535 (patch)
treec1b550aa5ac1c8bbe3c3366557455d19db3a4239 /lib/Support
parent97e60d9e8cf83274a1e4ac6443ed6da76d4b6088 (diff)
downloadllvm-6a33cc12ebf43b569ceea591c53edd3d507ad535.tar.gz
llvm-6a33cc12ebf43b569ceea591c53edd3d507ad535.tar.bz2
llvm-6a33cc12ebf43b569ceea591c53edd3d507ad535.tar.xz
Remove undefined behavior in hex string->APFloat
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
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/APFloat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp
index 187b108048..de333829da 100644
--- a/lib/Support/APFloat.cpp
+++ b/lib/Support/APFloat.cpp
@@ -2003,7 +2003,7 @@ APFloat::convertFromHexadecimalString(const char *p,
firstSignificantDigit = p;
for(;;) {
- unsigned int hex_value;
+ uint64_t hex_value;
if(*p == '.') {
assert(dot == 0);