mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Fix format-specifier warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109391 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
933304ef0c
commit
fd2878c8d0
1 file changed
+1
-1
@@ -309,7 +309,7 @@ void WinCOFFObjectWriter::InitCOFFEntity(COFFSection &S) {
|
||||
if (StringTableEntry > 999999)
|
||||
report_fatal_error("COFF string table is greater than 999999 bytes.");
|
||||
|
||||
sprintf(S.Header.Name, "/%d", StringTableEntry);
|
||||
sprintf(S.Header.Name, "/%d", (unsigned)StringTableEntry);
|
||||
} else
|
||||
memcpy(S.Header.Name, S.Name.c_str(), S.Name.size());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user