From 85a57910bdb696a6dd2d2852530681ecb92035b8 Mon Sep 17 00:00:00 2001 From: Jeff Cohen Date: Sun, 6 May 2007 03:24:19 +0000 Subject: Make code more 64-bit aware. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36833 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Bitcode/BitstreamReader.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/llvm/Bitcode') 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; -- cgit v1.1