[fpc-devel] Unexpected "Range check error while evaluating constants" when compiling for Win64
    Bart 
    bartjunk64 at gmail.com
       
    Sun Feb 12 21:43:53 CET 2023
    
    
  
On Sun, Feb 12, 2023 at 6:26 PM J. Gareth Moreton via fpc-devel
<fpc-devel at lists.freepascal.org> wrote:
>
> If HKey is unsigned, then yes, the definition should be
> HKEY(DWORD($80000001)).  I do wonder why Win64 produces that particular
> error though because the final destination is an unsigned 64-bit integer.
Because QWord(some not so big negative number) = some large positive number.
-- 
Bart
    
    
More information about the fpc-devel
mailing list