mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Use intptr_t instead of unsigned here, which is more appropriate
in a really obscure way, but more importantly has the side effect of avoiding a GCC warning in the case that IntType is bool. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60677 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3f7eb5b795
commit
994fd5354b
@ -53,7 +53,7 @@ public:
|
||||
}
|
||||
|
||||
void setInt(IntType Int) {
|
||||
assert(unsigned(Int) < (1 << IntBits) && "Integer too large for field");
|
||||
assert(intptr_t(Int) < (1 << IntBits) && "Integer too large for field");
|
||||
Value = reinterpret_cast<intptr_t>(getPointer()) | (intptr_t)Int;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user