[fpc-devel] Range check with array of const, and dword?

Martin Frb lazarus at mfriebe.de
Mon Apr 7 18:29:23 CEST 2014


Is the following supposed to give a range check? 2.6.4 on win

The value is correct for a DWord.

program Project1;
{$R+}

uses sysutils;

var
   n: DWORD;
   s: String;
begin
   n := $C2001122;
   s := Format('%x', [n]);   // <<<< range check here
   writeln(s);
   readln;
end.




More information about the fpc-devel mailing list