[llvm-commits] CVS: llvm/include/llvm/Bitcode/BitstreamReader.h

Jeff Cohen jeffc at jolt-lang.org
Sat May 5 20:24:37 PDT 2007



Changes in directory llvm/include/llvm/Bitcode:

BitstreamReader.h updated: 1.19 -> 1.20
---
Log message:

Make code more 64-bit aware.

---
Diffs of the changes:  (+3 -3)

 BitstreamReader.h |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm/include/llvm/Bitcode/BitstreamReader.h
diff -u llvm/include/llvm/Bitcode/BitstreamReader.h:1.19 llvm/include/llvm/Bitcode/BitstreamReader.h:1.20
--- llvm/include/llvm/Bitcode/BitstreamReader.h:1.19	Sat May  5 22:12:47 2007
+++ llvm/include/llvm/Bitcode/BitstreamReader.h	Sat May  5 22:24:19 2007
@@ -110,9 +110,9 @@
   
   /// 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;






More information about the llvm-commits mailing list