Make code more 64-bit aware.
authorJeff Cohen <jeffc@jolt-lang.org>
Sun, 6 May 2007 03:24:19 +0000 (03:24 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Sun, 6 May 2007 03:24:19 +0000 (03:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36833 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Bitcode/BitstreamReader.h

index 6e855b945c81afe0f0c6a6a1c23ef538229535cb..6f028fba000905a9e820fb91a387fcdd55a60126 100644 (file)
@@ -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;