summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2007-05-06 03:24:19 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2007-05-06 03:24:19 +0000
commit85a57910bdb696a6dd2d2852530681ecb92035b8 (patch)
treebf1c801810633ce39b4969e888e8ca34703e913c /include
parent650c938c41adc95e0935c75d7ed4349c46d280d1 (diff)
downloadllvm-85a57910bdb696a6dd2d2852530681ecb92035b8.tar.gz
llvm-85a57910bdb696a6dd2d2852530681ecb92035b8.tar.bz2
llvm-85a57910bdb696a6dd2d2852530681ecb92035b8.tar.xz
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')
-rw-r--r--include/llvm/Bitcode/BitstreamReader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Bitcode/BitstreamReader.h b/include/llvm/Bitcode/BitstreamReader.h
index 6e855b945c..6f028fba00 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;