From a75ddbf803521bd0778a127c104065ed8c1c0931 Mon Sep 17 00:00:00 2001 From: Frits van Bommel Date: Sun, 17 May 2009 10:33:21 +0200 Subject: [PATCH] Specify a large integer constant more portably. --- gen/toir.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gen/toir.cpp b/gen/toir.cpp index 84a9dca6..10dff631 100644 --- a/gen/toir.cpp +++ b/gen/toir.cpp @@ -11,6 +11,7 @@ #include #include "gen/llvm.h" +#include "llvm/Support/DataTypes.h" #include "attrib.h" #include "init.h" @@ -314,7 +315,7 @@ DValue* RealExp::toElem(IRState* p) LLConstant* RealExp::toConstElem(IRState* p) { Logger::print("RealExp::toConstElem: %s @ %s | %LX\n", toChars(), type->toChars(), - 0xFFFFFFFFFFUL & *(long long unsigned*)&value); + UINT64_C(0xFFFFFFFFFF) & *(long long unsigned*)&value); LOG_SCOPE; Type* t = type->toBasetype(); return DtoConstFP(t, value);