llvm.org GIT mirror llvm / 2cd43e4
Fix an approximate calculation in an assertion not to give false negatives. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35901 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Spencer 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
17251725 assert(slen <= numbits || radix != 2 && "Insufficient bit width");
17261726 assert(slen*3 <= numbits || radix != 8 && "Insufficient bit width");
17271727 assert(slen*4 <= numbits || radix != 16 && "Insufficient bit width");
1728 assert((slen*64)/20 <= numbits || radix != 10 && "Insufficient bit width");
1728 assert((slen*64)/22 <= numbits || radix != 10 && "Insufficient bit width");
17291729
17301730 // Allocate memory
17311731 if (!isSingleWord())