diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2007-05-06 03:24:19 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2007-05-06 03:24:19 +0000 |
commit | 85a57910bdb696a6dd2d2852530681ecb92035b8 (patch) | |
tree | bf1c801810633ce39b4969e888e8ca34703e913c /include/llvm/Bitcode | |
parent | 650c938c41adc95e0935c75d7ed4349c46d280d1 (diff) | |
download | external_llvm-85a57910bdb696a6dd2d2852530681ecb92035b8.zip external_llvm-85a57910bdb696a6dd2d2852530681ecb92035b8.tar.gz external_llvm-85a57910bdb696a6dd2d2852530681ecb92035b8.tar.bz2 |
Make code more 64-bit aware.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36833 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Bitcode')
-rw-r--r-- | include/llvm/Bitcode/BitstreamReader.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h index 6e855b9..6f028fb 100644 --- a/include/llvm/Bitcode/BitstreamReader.h +++ b/include/llvm/Bitcode/BitstreamReader.h @@ -110,9 +110,9 @@ public: /// JumpToBit - Reset the stream to the specified bit number. void JumpToBit(uint64_t BitNo) { - unsigned ByteNo = unsigned(BitNo/8) & ~3; - unsigned WordBitNo = unsigned(BitNo) & 31; - assert(ByteNo < (unsigned)(LastChar-FirstChar) && "Invalid location"); + uintptr_t ByteNo = uintptr_t(BitNo/8) & ~3; + uintptr_t WordBitNo = uintptr_t(BitNo) & 31; + assert(ByteNo < (uintptr_t)(LastChar-FirstChar) && "Invalid location"); // Move the cursor to the right word. NextChar = FirstChar+ByteNo; |