[llvm-commits] [llvm] r51132 - /llvm/trunk/lib/Support/APFloat.cpp
Dale Johannesen
dalej at apple.com
Wed May 14 15:05:31 PDT 2008
Author: johannes
Date: Wed May 14 17:05:31 2008
New Revision: 51132
URL: http://llvm.org/viewvc/llvm-project?rev=51132&view=rev
Log:
Remove undefined behavior in hex string->APFloat
conversion. Try 0x1.0000a4p+0f. Neil, please review.
Modified:
llvm/trunk/lib/Support/APFloat.cpp
Modified: llvm/trunk/lib/Support/APFloat.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APFloat.cpp?rev=51132&r1=51131&r2=51132&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APFloat.cpp (original)
+++ llvm/trunk/lib/Support/APFloat.cpp Wed May 14 17:05:31 2008
@@ -2003,7 +2003,7 @@
firstSignificantDigit = p;
for(;;) {
- unsigned int hex_value;
+ uint64_t hex_value;
if(*p == '.') {
assert(dot == 0);
More information about the llvm-commits
mailing list