On Thu, Apr 4, 2024 at 9:49 PM Martin Frb via fpc-devel
<fpc-devel@lists.freepascal.org> wrote:

> The below writes:  -9223372036854775808
>
> Shouldn't absolute return a positive number?
>
> program Project1;
> begin
>    writeln( abs(low(int64)) );
> end.

See https://gitlab.com/freepascal.org/fpc/source/-/issues/40694
There were several commits about Abs w.r.t. this bug lately.
-- 
Bart
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to