[fpc-pascal] QWord/UInt64 and Range Check Errors

Ruediger Hahn ruediger.hahn at itservices-hahn.de
Thu Jun 25 19:58:31 CEST 2009


Hi all,

I am just wondering if this is a bug: Can anyone tell me why I get a 
"range check error while evaluating constants" with the following simple 
program:

<code>
program Project1;

const
 MyVar : UInt64 = $FFFFFFFFFFFFFFFF; // 4 x 2 Bytes or 4 Words

begin
end.
</code>

In Delphi this compiles without warnings/errors even with range checking 
enabled.

Ruediger



More information about the fpc-pascal mailing list