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.

_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to