In Chicken 3.4.0 linux-unix-gnu-x86-64 the expression (abs 2147483648)
evaluates to -2147483648 in both csi and a compiled program (negative?
and positive?, however, seem to work correctly). It evaluated
correctly in a 32-bits build of the same version.
Is this a known issue? Has it been fixed
Alejandro Forero Cuervo scripsit:
In Chicken 3.4.0 linux-unix-gnu-x86-64 the expression (abs 2147483648)
evaluates to -2147483648 in both csi and a compiled program (negative?
and positive?, however, seem to work correctly).
The bug is still present in 4.1.1, and it's drastic:
#;1 (abs
John Cowan scripsit:
The bug is still present in 4.1.1, and it's drastic:
#;1 (abs 2147483648)
-2147483648
#;2 (abs 2147483649)
2147483647
#;3 (abs 2147483650)
2147483646
#;4 (abs 4294967296)
0
Oops, dropped the following:
Almost certainly this is happening because the fixnum is
On Fri, Jul 31, 2009 at 8:02 AM, Alejandro Forero
Cuervoa...@freaks-unidos.net wrote:
In Chicken 3.4.0 linux-unix-gnu-x86-64 the expression (abs 2147483648)
evaluates to -2147483648 in both csi and a compiled program (negative?
and positive?, however, seem to work correctly). It evaluated