Use int32_t and uint32_t to hopefully help weak compilers (cygwin) not
authorReid Spencer <rspencer@reidspencer.com>
Fri, 9 Feb 2007 18:03:35 +0000 (18:03 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 9 Feb 2007 18:03:35 +0000 (18:03 +0000)
generate errors about being unable to resolve overloaded type.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34103 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Writer/Writer.cpp

index aa9952badbdd5ed04c15e0b31e22bc247ac9bb29..1c1d0800da394fb00d3cbcfba0502f90c14306de 100644 (file)
@@ -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...