1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

Fix casting so there's no warning on Alpha.

llvm-svn: 28605
This commit is contained in:
Reid Spencer 2006-05-31 22:26:11 +00:00
parent 1513c5909e
commit 30d5eade2a

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