1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

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
This commit is contained in:
Reid Spencer 2007-02-09 18:03:35 +00:00
parent 678fd83797
commit b1e839a4d3

View File

@ -70,8 +70,8 @@ inline void BytecodeWriter::output(unsigned i, int pos) {
} }
} }
inline void BytecodeWriter::output(int i) { inline void BytecodeWriter::output(int32_t i) {
output((unsigned)i); output((uint32_t)i);
} }
/// output_vbr - Output an unsigned value, by using the least number of bytes /// 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) { while (1) {
if (i < 0x80) { // done? if (i < 0x80) { // done?
Out.push_back((unsigned char)i); // We know the high bit is clear... Out.push_back((unsigned char)i); // We know the high bit is clear...