On Sun, Feb 12, 2023 at 10:43 PM Yuriy Sydorov via fpc-devel
<fpc-devel@lists.freepascal.org> wrote:

> Error "Range check error while evaluating constants (18446744071562067969 
> must be between -2147483648 and 4294967295)"
> is wrong here:
>
> property RootKey: HKey read FRootKey write FRootKey default HKEY_CURRENT_USER;
>
> Since HKEY = THandle = QWord on Win64, the reported range for it is incorrect.

Reported: https://gitlab.com/freepascal.org/fpc/source/-/issues/40148
(with simplified example).

-- 
Bart
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to