From 82f87e63e83dc4311bb66d3866574b212059edc9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 16 Nov 2003 20:21:15 +0000 Subject: Fixes for PR114: Thanks to Reid Spencer! llvm-svn: 10029 --- llvm/include/Support/MathExtras.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/include/Support/MathExtras.h') diff --git a/llvm/include/Support/MathExtras.h b/llvm/include/Support/MathExtras.h index 74958fbc357..125aff3b9ff 100644 --- a/llvm/include/Support/MathExtras.h +++ b/llvm/include/Support/MathExtras.h @@ -28,7 +28,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((uint64_t)C); + getPow = log2(static_cast(C)); return true; } -- cgit v1.2.3