Changes in directory llvm/lib/Support:
APInt.cpp updated: 1.77 -> 1.78 --- Log message: We want the number of bits needed, not the power of 2. --- Diffs of the changes: (+1 -1) APInt.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Support/APInt.cpp diff -u llvm/lib/Support/APInt.cpp:1.77 llvm/lib/Support/APInt.cpp:1.78 --- llvm/lib/Support/APInt.cpp:1.77 Fri Apr 13 14:19:07 2007 +++ llvm/lib/Support/APInt.cpp Fri Apr 13 19:00:10 2007 @@ -693,7 +693,7 @@ APInt tmp(sufficient, str, slen, radix); // Compute how many bits are required. - return isNegative + tmp.logBase2(); + return isNegative + tmp.logBase2() + 1; } uint64_t APInt::getHashValue() const { _______________________________________________ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits