[fpc-devel] Unexpected "Range check error while evaluating constants" when compiling for Win64
Bart
bartjunk64 at gmail.com
Mon Feb 13 20:44:52 CET 2023
On Sun, Feb 12, 2023 at 10:43 PM Yuriy Sydorov via fpc-devel
<fpc-devel at 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
More information about the fpc-devel
mailing list