Fix casting so there's no warning on Alpha.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 31 May 2006 22:26:11 +0000 (22:26 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 31 May 2006 22:26:11 +0000 (22:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28605 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/CBackend/CBackend.cpp
lib/Target/CBackend/Writer.cpp

index 120448a2f4837a953fb7fb114837035599b3c222..6786780d23e429aaeb12d599a407dea2287c5507 100644 (file)
@@ -685,7 +685,7 @@ void CWriter::printConstant(Constant *CPV) {
         char Buffer[100];
 
         uint64_t ll = DoubleToBits(FPC->getValue());
-        sprintf(Buffer, "0x%llx", uint64_t(ll));
+        sprintf(Buffer, "0x%llx", static_cast<long long>(ll));
 
         std::string Num(&Buffer[0], &Buffer[6]);
         unsigned long Val = strtoul(Num.c_str(), 0, 16);
index 120448a2f4837a953fb7fb114837035599b3c222..6786780d23e429aaeb12d599a407dea2287c5507 100644 (file)
@@ -685,7 +685,7 @@ void CWriter::printConstant(Constant *CPV) {
         char Buffer[100];
 
         uint64_t ll = DoubleToBits(FPC->getValue());
-        sprintf(Buffer, "0x%llx", uint64_t(ll));
+        sprintf(Buffer, "0x%llx", static_cast<long long>(ll));
 
         std::string Num(&Buffer[0], &Buffer[6]);
         unsigned long Val = strtoul(Num.c_str(), 0, 16);