mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-12 14:41:05 +00:00
Fix an approximate calculation in an assertion not to give false negatives.
llvm-svn: 35901
This commit is contained in:
parent
9569890d38
commit
9b497be3c4
@ -1726,7 +1726,7 @@ void APInt::fromString(uint32_t numbits, const char *str, uint32_t slen,
|
||||
assert(slen <= numbits || radix != 2 && "Insufficient bit width");
|
||||
assert(slen*3 <= numbits || radix != 8 && "Insufficient bit width");
|
||||
assert(slen*4 <= numbits || radix != 16 && "Insufficient bit width");
|
||||
assert((slen*64)/20 <= numbits || radix != 10 && "Insufficient bit width");
|
||||
assert((slen*64)/22 <= numbits || radix != 10 && "Insufficient bit width");
|
||||
|
||||
// Allocate memory
|
||||
if (!isSingleWord())
|
||||
|
Loading…
x
Reference in New Issue
Block a user