Fix compile warnings on Linux

This commit is contained in:
Matt Pharr
2012-03-12 13:12:23 -07:00
parent a473046058
commit 9ec8e5a275
2 changed files with 21 additions and 21 deletions

View File

@@ -1355,7 +1355,7 @@ void CWriter::printConstant(Constant *CPV, bool Static) {
char Buffer[100];
uint64_t ll = DoubleToBits(V);
sprintf(Buffer, "0x%"PRIx64, static_cast<long long>(ll));
sprintf(Buffer, "0x%"PRIx64, ll);
std::string Num(&Buffer[0], &Buffer[6]);
unsigned long Val = strtoul(Num.c_str(), 0, 16);