mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Fix VC++ constant truncation warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
78beab014b
commit
23c73a1823
@ -499,7 +499,7 @@ void ELFWriter::OutputSectionsAndSectionTable() {
|
||||
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 @@ void ELFWriter::OutputSectionsAndSectionTable() {
|
||||
// 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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user