diff options
Diffstat (limited to 'include/Support/MathExtras.h')
-rw-r--r-- | include/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Support/MathExtras.h b/include/Support/MathExtras.h index 74958fbc35..125aff3b9f 100644 --- a/include/Support/MathExtras.h +++ b/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<uint64_t>(C)); return true; } |