mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 03:13:13 +01:00
Use %La to hex-format a real instead of pretending it's an integer.
This commit is contained in:
@@ -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 @@ DValue* RealExp::toElem(IRState* p)
|
||||
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user