diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-17 23:56:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-17 23:56:50 +0000 |
commit | 16ca2b991b07c85237e53e8b0c97f30c4cbc6e3d (patch) | |
tree | 20d8133fa4c5fa368a4b815e926dcb5f37f1d129 /include/llvm/Support/MathExtras.h | |
parent | 5fda99744ecd82de0e8e044a5a3693808d2bc188 (diff) |
Fix ambiguity problem due to builtin log2(double) function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3800 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r-- | include/llvm/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h index bd5692b3dd..d9076580b7 100644 --- a/include/llvm/Support/MathExtras.h +++ b/include/llvm/Support/MathExtras.h @@ -19,7 +19,7 @@ inline unsigned log2(uint64_t C) { inline bool isPowerOf2(int64_t C, unsigned &getPow) { if (C < 0) C = -C; if (C > 0 && C == (C & ~(C - 1))) { - getPow = log2(C); + getPow = log2((uint64_t)C); return true; } |