mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Fixes for PR114: Thanks to Reid Spencer!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user