mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Make code more 64-bit aware.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36833 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -110,9 +110,9 @@ public:
|
|||||||
|
|
||||||
/// JumpToBit - Reset the stream to the specified bit number.
|
/// JumpToBit - Reset the stream to the specified bit number.
|
||||||
void JumpToBit(uint64_t BitNo) {
|
void JumpToBit(uint64_t BitNo) {
|
||||||
unsigned ByteNo = unsigned(BitNo/8) & ~3;
|
uintptr_t ByteNo = uintptr_t(BitNo/8) & ~3;
|
||||||
unsigned WordBitNo = unsigned(BitNo) & 31;
|
uintptr_t WordBitNo = uintptr_t(BitNo) & 31;
|
||||||
assert(ByteNo < (unsigned)(LastChar-FirstChar) && "Invalid location");
|
assert(ByteNo < (uintptr_t)(LastChar-FirstChar) && "Invalid location");
|
||||||
|
|
||||||
// Move the cursor to the right word.
|
// Move the cursor to the right word.
|
||||||
NextChar = FirstChar+ByteNo;
|
NextChar = FirstChar+ByteNo;
|
||||||
|
Reference in New Issue
Block a user