diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-11 15:50:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-11 15:50:40 +0000 |
commit | c71ff4c34b9dfc5f25fc984da19ef85b0ef37906 (patch) | |
tree | e00a1110ac71f73eb49d6cec1b93c6de9ef9e172 | |
parent | 30ba5690cf7a6f4db8913463d03f239f82d17440 (diff) | |
download | external_llvm-c71ff4c34b9dfc5f25fc984da19ef85b0ef37906.zip external_llvm-c71ff4c34b9dfc5f25fc984da19ef85b0ef37906.tar.gz external_llvm-c71ff4c34b9dfc5f25fc984da19ef85b0ef37906.tar.bz2 |
Fix a warning that is emitted on the suns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16917 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 2 | ||||
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index bdc8b8d..c4d8c46 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -573,7 +573,7 @@ void CWriter::printConstant(Constant *CPV) { char Buffer[100]; DHex.d = FPC->getValue(); - sprintf(Buffer, "0x%llx", DHex.ll); + sprintf(Buffer, "0x%llx", (unsigned long long)DHex.ll); std::string Num(&Buffer[0], &Buffer[6]); unsigned long Val = strtoul(Num.c_str(), 0, 16); diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index bdc8b8d..c4d8c46 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -573,7 +573,7 @@ void CWriter::printConstant(Constant *CPV) { char Buffer[100]; DHex.d = FPC->getValue(); - sprintf(Buffer, "0x%llx", DHex.ll); + sprintf(Buffer, "0x%llx", (unsigned long long)DHex.ll); std::string Num(&Buffer[0], &Buffer[6]); unsigned long Val = strtoul(Num.c_str(), 0, 16); |