Mercurial > projects > ldc
changeset 1377:3fb15be5ab6d
Specify a large integer constant more portably.
author | Frits van Bommel <fvbommel wxs.nl> |
---|---|
date | Sun, 17 May 2009 10:33:21 +0200 |
parents | a5d0e04298a8 |
children | 5575e0c07e1a |
files | gen/toir.cpp |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <fstream> #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);