E2102 Integer constant too large (Delphi)

From RAD Studio
Jump to: navigation, search

Go Up to Error and Warning Messages (Delphi)

You have specified an integer constant that requires more than 64 bits to represent.


program Produce;

  const
    VeryBigHex = $80000000000000001;

begin
end.

The constant in the above example is too large to represent in 64 bits, thus the compiler will output an error.


program Solve;

  const
    BigHex = $8000000000000001;

begin
end.

Check the constants that you have specified and ensure that they are representable in 64 bits.