mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-23 05:29:23 +00:00
apparently GCC doesn't believe that I understand C
precedence rules. Pacify it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f7dba7b17
commit
b9cf75a15f
@ -42,12 +42,12 @@ public:
|
||||
}
|
||||
|
||||
IntType getInt() const {
|
||||
return (IntType)(Value & (1 << IntBits)-1);
|
||||
return (IntType)(Value & ((1 << IntBits)-1));
|
||||
}
|
||||
|
||||
void setPointer(PointerTy Ptr) {
|
||||
intptr_t PtrVal = reinterpret_cast<intptr_t>(Ptr);
|
||||
assert((PtrVal & (1 << IntBits)-1) == 0 &&
|
||||
assert((PtrVal & ((1 << IntBits)-1)) == 0 &&
|
||||
"Pointer is not sufficiently aligned");
|
||||
Value = PtrVal | (intptr_t)getInt();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user