mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-09 20:13:35 +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:
parent
933304ef0c
commit
fd2878c8d0
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user