diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-05-31 22:26:11 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-05-31 22:26:11 +0000 |
commit | 2bc320de0c8dc547b1261f1036d1f2115bac5fdc (patch) | |
tree | ed76e8344c53e29e2d725af9d64c50a224ff0501 | |
parent | d5f677086eedbde5f8ed401414bbd05b812a1b72 (diff) |
Fix casting so there's no warning on Alpha.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28605 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 120448a2f4..6786780d23 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -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); diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 120448a2f4..6786780d23 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", 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); |