On 03 Apr 2012, at 20:27, patspiper wrote:

> The following is related to bug #0021641 (Array of const gives check range 
> error).
> 
> Is it correct for the exception to manifest itself in the dword case and not 
> the qword one?
> 
>  writeln(Format('%d', [qword(qword(High(Int64))+1)]));  //ok
>  writeln(Format('%d', [dword(dword(High(integer))+1)]));  //exception

Yes, it's correct, because as mentioned in the bug report tvarrec can hold a 
qword, but not a dword (and dword must be passed as 32 bit = longint for Delphi 
compatibility).


Jonas_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to