mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
Specify a large integer constant more portably.
This commit is contained in:
@@ -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 @@ 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);
|
||||
|
||||
Reference in New Issue
Block a user