summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-11 15:50:40 +0000
committerChris Lattner <sabre@nondot.org>2004-10-11 15:50:40 +0000
commit58043a1473ca227cf8484a2014cc5d1f0ba19ed9 (patch)
treee1e3c3643c94c719bdb33cfea94c3b74435967ea
parent004e250cd29b59df75d53732675d34d1d826a837 (diff)
downloadbcm5719-llvm-58043a1473ca227cf8484a2014cc5d1f0ba19ed9.tar.gz
bcm5719-llvm-58043a1473ca227cf8484a2014cc5d1f0ba19ed9.zip
Fix a warning that is emitted on the suns
llvm-svn: 16917
-rw-r--r--llvm/lib/Target/CBackend/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CBackend/Writer.cpp b/llvm/lib/Target/CBackend/Writer.cpp
index bdc8b8d6500..c4d8c464837 100644
--- a/llvm/lib/Target/CBackend/Writer.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud