commit | ab18bd7f2538ffbf4eb3a6c4fc21f513998edff3 | [log] [tgz] |
---|---|---|
author | Dale Johannesen <dalej@apple.com> | Wed May 14 22:05:31 2008 +0000 |
committer | Dale Johannesen <dalej@apple.com> | Wed May 14 22:05:31 2008 +0000 |
tree | c1b550aa5ac1c8bbe3c3366557455d19db3a4239 | |
parent | a6fe65a41e6af51def437f4348241ca05c096b30 [diff] |
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 187b108..de33382 100644 --- a/lib/Support/APFloat.cpp +++ b/lib/Support/APFloat.cpp
@@ -2003,7 +2003,7 @@ firstSignificantDigit = p; for(;;) { - unsigned int hex_value; + uint64_t hex_value; if(*p == '.') { assert(dot == 0);