[llvm-commits] CVS: llvm/lib/CodeGen/ELFWriter.cpp
Jeff Cohen
jeffc at jolt-lang.org
Fri Aug 19 09:19:32 PDT 2005
Changes in directory llvm/lib/CodeGen:
ELFWriter.cpp updated: 1.14 -> 1.15
---
Log message:
Fix VC++ constant truncation warning.
---
Diffs of the changes: (+2 -2)
ELFWriter.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/CodeGen/ELFWriter.cpp
diff -u llvm/lib/CodeGen/ELFWriter.cpp:1.14 llvm/lib/CodeGen/ELFWriter.cpp:1.15
--- llvm/lib/CodeGen/ELFWriter.cpp:1.14 Thu Jul 28 13:13:59 2005
+++ llvm/lib/CodeGen/ELFWriter.cpp Fri Aug 19 11:19:21 2005
@@ -499,7 +499,7 @@
if (S.Align)
for (size_t NewFileOff = (FileOff+S.Align-1) & ~(S.Align-1);
FileOff != NewFileOff; ++FileOff)
- O.put(0xAB);
+ O.put((char)0xAB);
O.write((char*)&S.SectionData[0], S.SectionData.size());
FileOff += S.SectionData.size();
@@ -520,7 +520,7 @@
// Align output for the section table.
for (size_t NewFileOff = (FileOff+TableAlign-1) & ~(TableAlign-1);
FileOff != NewFileOff; ++FileOff)
- O.put(0xAB);
+ O.put((char)0xAB);
// Emit the section table itself.
O.write((char*)&Table[0], Table.size());
More information about the llvm-commits
mailing list