[fpc-devel] Unexpected "Range check error while evaluating constants" when compiling for Win64

Jonas Maebe jonas at freepascal.org
Sun Feb 12 22:46:49 CET 2023


On 12/02/2023 22:37, Yuriy Sydorov via fpc-devel wrote:
> 
> property RootKey: HKey read FRootKey write FRootKey default 
> HKEY_CURRENT_USER;
> 
> Since HKEY = THandle = QWord on Win64, the reported range for it is 
> incorrect.

Afaik it's because "default" doesn't support qword values, iirc because 
of (at least old) Delphi compatibility.


Jonas


More information about the fpc-devel mailing list