[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp
Reid Spencer
reid at x10sys.com
Wed May 31 15:26:24 PDT 2006
Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.262 -> 1.263
---
Log message:
Fix casting so there's no warning on Alpha.
---
Diffs of the changes: (+1 -1)
Writer.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Target/CBackend/Writer.cpp
diff -u llvm/lib/Target/CBackend/Writer.cpp:1.262 llvm/lib/Target/CBackend/Writer.cpp:1.263
--- llvm/lib/Target/CBackend/Writer.cpp:1.262 Wed May 24 14:21:12 2006
+++ llvm/lib/Target/CBackend/Writer.cpp Wed May 31 17:26:11 2006
@@ -685,7 +685,7 @@
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);
More information about the llvm-commits
mailing list