summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-25 00:11:25 +0000
committerChris Lattner <sabre@nondot.org>2004-06-25 00:11:25 +0000
commit521eb8752b2e1ab7318169c10dd7a23acf78664b (patch)
treed528d7e83e23a77d1c2c9d8f8c8e83aeeea465d1 /llvm/lib/Bytecode/Writer
parent5e3afa0d4c6c05df641c2f667c857fe8fb569880 (diff)
downloadbcm5719-llvm-521eb8752b2e1ab7318169c10dd7a23acf78664b.tar.gz
bcm5719-llvm-521eb8752b2e1ab7318169c10dd7a23acf78664b.zip
fix warnings
llvm-svn: 14388
Diffstat (limited to 'llvm/lib/Bytecode/Writer')
-rw-r--r--llvm/lib/Bytecode/Writer/WriterPrimitives.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Writer/WriterPrimitives.h b/llvm/lib/Bytecode/Writer/WriterPrimitives.h
index 5bb01665185..b76cc55e163 100644
--- a/llvm/lib/Bytecode/Writer/WriterPrimitives.h
+++ b/llvm/lib/Bytecode/Writer/WriterPrimitives.h
@@ -62,7 +62,7 @@ static inline void output_vbr(uint64_t i, std::deque<unsigned char> &out) {
// Nope, we are bigger than a character, output the next 7 bits and set the
// high bit to say that there is more coming...
- out.push_back(0x80 | (i & 0x7F));
+ out.push_back(0x80 | ((unsigned char)i & 0x7F));
i >>= 7; // Shift out 7 bits now...
}
}
@@ -76,7 +76,7 @@ static inline void output_vbr(unsigned i, std::deque<unsigned char> &out) {
// Nope, we are bigger than a character, output the next 7 bits and set the
// high bit to say that there is more coming...
- out.push_back(0x80 | (i & 0x7F));
+ out.push_back(0x80 | ((unsigned char)i & 0x7F));
i >>= 7; // Shift out 7 bits now...
}
}
OpenPOWER on IntegriCloud