summaryrefslogtreecommitdiffstats
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
commit53555de8f20a97e6fba591be82accf7d704d6f52 (patch)
tree8165f51838e62abebce61e154dbb830647df9c96
parentfd73e54ef889fccb8f18bf34be241264cc560ab9 (diff)
downloadbcm5719-llvm-53555de8f20a97e6fba591be82accf7d704d6f52.tar.gz
bcm5719-llvm-53555de8f20a97e6fba591be82accf7d704d6f52.zip
Make code more 64-bit aware.
llvm-svn: 36833
-rw-r--r--llvm/include/llvm/Bitcode/BitstreamReader.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Bitcode/BitstreamReader.h b/llvm/include/llvm/Bitcode/BitstreamReader.h
index 6e855b945c8..6f028fba000 100644
--- a/llvm/include/llvm/Bitcode/BitstreamReader.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud