aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/WriterPrimitives.h
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
commit32b588039e8db86269edab5bd2b49ba1aebb00b8 (patch)
treebc47179bd8005a4cca75af0760aa691363a67e8d /lib/Bytecode/Writer/WriterPrimitives.h
parent75afe1f90472b1605ea05a2d13e615956998f8d1 (diff)
fix warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14388 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/WriterPrimitives.h')
-rw-r--r--lib/Bytecode/Writer/WriterPrimitives.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Bytecode/Writer/WriterPrimitives.h b/lib/Bytecode/Writer/WriterPrimitives.h
index 5bb0166518..b76cc55e16 100644
--- a/lib/Bytecode/Writer/WriterPrimitives.h
+++ b/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...
}
}