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:
Douglas Gregor 2010-07-26 03:55:44 +00:00
parent 933304ef0c
commit fd2878c8d0

View File

@ -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());
}