[llvm-commits] CVS: llvm/lib/Bytecode/Writer/Writer.cpp
Reid Spencer
reid at x10sys.com
Fri Feb 9 10:03:51 PST 2007
Changes in directory llvm/lib/Bytecode/Writer:
Writer.cpp updated: 1.158 -> 1.159
---
Log message:
Use int32_t and uint32_t to hopefully help weak compilers (cygwin) not
generate errors about being unable to resolve overloaded type.
---
Diffs of the changes: (+3 -3)
Writer.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/lib/Bytecode/Writer/Writer.cpp
diff -u llvm/lib/Bytecode/Writer/Writer.cpp:1.158 llvm/lib/Bytecode/Writer/Writer.cpp:1.159
--- llvm/lib/Bytecode/Writer/Writer.cpp:1.158 Fri Feb 9 01:53:20 2007
+++ llvm/lib/Bytecode/Writer/Writer.cpp Fri Feb 9 12:03:35 2007
@@ -70,8 +70,8 @@
}
}
-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(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...
More information about the llvm-commits
mailing list