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
This commit is contained in:
Reid Spencer 2006-05-31 22:26:11 +00:00
parent d5f677086e
commit 2bc320de0c
2 changed files with 2 additions and 2 deletions

View 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);

View 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);