[fpc-pascal] range check error while evaluating constant (number literals larger than$7fffffffffffffff)
Bernd
prof7bit at googlemail.com
Tue Dec 6 00:39:03 CET 2011
var
x : QWord;
begin
x := $ffffffffffffffff;
writeln(IntToHex(x, 16));
end.
this happens at compile time when trying to evaluate the literal
$ffffffffffffffff
testus.lpr(16,8) Warning: range check error while evaluating constants
But it still seems to evaluate it correctly and the variable will have
the correct value, so its not a show stopper for me, just an annoying
warning. It seems it starts complaining as soon as it exceeds the
range of a signed 64 bit.
I am using the 2_6 branch on linux/i386
Bernd
More information about the fpc-pascal
mailing list