From 5808739face86f794e51ebed9eee2e064a7b3994 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 9 Feb 2007 18:03:35 +0000 Subject: 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 --- llvm/lib/Bytecode/Writer/Writer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Bytecode') 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... -- cgit v1.2.3