diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 13:00:04 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-11 13:00:04 +0000 |
commit | c49f2ef236a4454c6575825591c9e74a7a931d11 (patch) | |
tree | ede30c2e0ed0f7798e43019ba5dd829a175e16af /llvm/lib/Support | |
parent | f4fd92907ee3e827bdc9ad525f4bccf2a84d34c7 (diff) | |
download | bcm5719-llvm-c49f2ef236a4454c6575825591c9e74a7a931d11.tar.gz bcm5719-llvm-c49f2ef236a4454c6575825591c9e74a7a931d11.zip |
Fix an approximate calculation in an assertion not to give false negatives.
llvm-svn: 35901
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 27d4741321c..73ee3e18dc7 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -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()) |