From: Dale Johannesen Date: Wed, 14 May 2008 22:05:31 +0000 (+0000) Subject: Remove undefined behavior in hex string->APFloat X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=6a33cc12ebf43b569ceea591c53edd3d507ad535;p=oota-llvm.git 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 --- diff --git a/lib/Support/APFloat.cpp b/lib/Support/APFloat.cpp index 187b108048a..de333829dae 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);