[fpc-pascal] Range checks
skalogryz.lists at gmail.com
Sat Jan 27 16:56:59 CET 2018
On Sat, Jan 27, 2018 at 10:06 AM, Adriaan van Os <fpc at microbizz.nl> wrote:
> The code shouldn't generate a range check error, as the target type is
Count returns Unsigned Qword.
unsigned $FFFFFFFFFFFFFFFF is beyond 32-bit boundary.
The similar issue, but more explicit.
function Count: qword;
Result := 0;
K : Qword;
I:=k; // <-- rangecheck error
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal