# HG changeset patch # User Frits van Bommel # Date 1242551174 -7200 # Node ID 5575e0c07e1a7ec12667508a38c792c172499125 # Parent 3fb15be5ab6d5289e45d492b5e82599b3bdf313c Use %La to hex-format a real instead of pretending it's an integer. diff -r 3fb15be5ab6d -r 5575e0c07e1a gen/toir.cpp --- 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 #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);