aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/CBackend/Writer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-05-24 19:21:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-05-24 19:21:13 +0000
commit19b7e0e0cabfa6dfc559c64e3d6ed053832c4047 (patch)
tree79b2611d6dfc345798b274934fd99127b12e71dc /lib/Target/CBackend/Writer.cpp
parent077b38720772de4b87d5855a399d95b7dbd5b278 (diff)
For PR786:
Minor tweaks in public headers and a few .cpp files so that LLVM can build successfully with -pedantic and projects using LLVM with -pedantic don't get warnings from LLVM. There's still more -pedantic warnings to fix. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28453 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r--lib/Target/CBackend/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp
index 4c74e54053..120448a2f4 100644
--- a/lib/Target/CBackend/Writer.cpp
+++ b/lib/Target/CBackend/Writer.cpp
@@ -685,7 +685,7 @@ void CWriter::printConstant(Constant *CPV) {
char Buffer[100];
uint64_t ll = DoubleToBits(FPC->getValue());
- sprintf(Buffer, "0x%llx", (unsigned long long)ll);
+ sprintf(Buffer, "0x%llx", uint64_t(ll));
std::string Num(&Buffer[0], &Buffer[6]);
unsigned long Val = strtoul(Num.c_str(), 0, 16);