mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
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:
parent
d5f677086e
commit
2bc320de0c
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user