mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 13:44:28 +00:00
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
This commit is contained in:
parent
97e60d9e8c
commit
6a33cc12eb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user