summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Writer/Writer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-09 18:03:35 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-09 18:03:35 +0000
commit5808739face86f794e51ebed9eee2e064a7b3994 (patch)
tree887d5729d1806701d305c04e63210a90b319f9be /llvm/lib/Bytecode/Writer/Writer.cpp
parent850f09baca8538e7c1bec631ae0d4b176c29c9c3 (diff)
downloadbcm5719-llvm-5808739face86f794e51ebed9eee2e064a7b3994.tar.gz
bcm5719-llvm-5808739face86f794e51ebed9eee2e064a7b3994.zip
Use int32_t and uint32_t to hopefully help weak compilers (cygwin) not
generate errors about being unable to resolve overloaded type. llvm-svn: 34103
Diffstat (limited to 'llvm/lib/Bytecode/Writer/Writer.cpp')
-rw-r--r--llvm/lib/Bytecode/Writer/Writer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Writer/Writer.cpp b/llvm/lib/Bytecode/Writer/Writer.cpp
index aa9952badbd..1c1d0800da3 100644
--- a/llvm/lib/Bytecode/Writer/Writer.cpp
+++ b/llvm/lib/Bytecode/Writer/Writer.cpp
@@ -70,8 +70,8 @@ inline void BytecodeWriter::output(unsigned i, int pos) {
}
}
-inline void BytecodeWriter::output(int i) {
- output((unsigned)i);
+inline void BytecodeWriter::output(int32_t i) {
+ output((uint32_t)i);
}
/// output_vbr - Output an unsigned value, by using the least number of bytes
@@ -93,7 +93,7 @@ inline void BytecodeWriter::output_vbr(uint64_t i) {
}
}
-inline void BytecodeWriter::output_vbr(unsigned i) {
+inline void BytecodeWriter::output_vbr(uint32_t i) {
while (1) {
if (i < 0x80) { // done?
Out.push_back((unsigned char)i); // We know the high bit is clear...
OpenPOWER on IntegriCloud