# HG changeset patch # User Frits van Bommel # Date 1242549201 -7200 # Node ID 3fb15be5ab6d5289e45d492b5e82599b3bdf313c # Parent a5d0e04298a82860bcabbaa9625324770713dff3 Specify a large integer constant more portably. diff -r a5d0e04298a8 -r 3fb15be5ab6d gen/toir.cpp --- a/gen/toir.cpp Sun May 17 05:07:51 2009 +0200 +++ b/gen/toir.cpp Sun May 17 10:33:21 2009 +0200 @@ -11,6 +11,7 @@ #include #include "gen/llvm.h" +#include "llvm/Support/DataTypes.h" #include "attrib.h" #include "init.h" @@ -314,7 +315,7 @@ 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);