changeset 1378:5575e0c07e1a

Use %La to hex-format a real instead of pretending it's an integer.
author Frits van Bommel <fvbommel wxs.nl>
date Sun, 17 May 2009 11:06:14 +0200
parents 3fb15be5ab6d
children d430a41fbb45
files gen/toir.cpp
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gen/toir.cpp	Sun May 17 10:33:21 2009 +0200
+++ b/gen/toir.cpp	Sun May 17 11:06:14 2009 +0200
@@ -11,7 +11,6 @@
 #include <fstream>
 
 #include "gen/llvm.h"
-#include "llvm/Support/DataTypes.h"
 
 #include "attrib.h"
 #include "init.h"
@@ -314,8 +313,7 @@
 
 LLConstant* RealExp::toConstElem(IRState* p)
 {
-    Logger::print("RealExp::toConstElem: %s @ %s | %LX\n", toChars(), type->toChars(),
-        UINT64_C(0xFFFFFFFFFF) & *(long long unsigned*)&value);
+    Logger::print("RealExp::toConstElem: %s @ %s | %La\n", toChars(), type->toChars(), value);
     LOG_SCOPE;
     Type* t = type->toBasetype();
     return DtoConstFP(t, value);