diff options
| author | Chris Lattner <sabre@nondot.org> | 2003-11-16 20:21:15 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2003-11-16 20:21:15 +0000 |
| commit | 82f87e63e83dc4311bb66d3866574b212059edc9 (patch) | |
| tree | 9fbfd3a788d309c9f2d38ad494364aacaec070f2 /llvm/include/Support/MathExtras.h | |
| parent | 27b10bc781aa9b4aff622bdd1411fec56b064f7c (diff) | |
| download | bcm5719-llvm-82f87e63e83dc4311bb66d3866574b212059edc9.tar.gz bcm5719-llvm-82f87e63e83dc4311bb66d3866574b212059edc9.zip | |
Fixes for PR114: Thanks to Reid Spencer!
llvm-svn: 10029
Diffstat (limited to 'llvm/include/Support/MathExtras.h')
| -rw-r--r-- | llvm/include/Support/MathExtras.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<uint64_t>(C)); return true; } |

