[fpc-pascal] Is this an error ?

JoshyFun joshyfun at gmail.com
Mon Sep 28 21:31:51 CEST 2009


Hello FPC-Pascal,

Can anybody explain me if this code is expected to fail with a SIGFPE
in 64 bits windows 2.2.4 fpc:

procedure test;
var
  i6: int64;
  qw: QWord;
  r: int64;
begin
  i6:=40;
  qw:=40;
  r:=(integer(-1)*i6) div qw;
end;

Replacing "qw" with an int64 runs fine.

-- 
Best regards,
 JoshyFun




More information about the fpc-pascal mailing list