[Chicken-users] (abs 2147483648) evaluates to negative number

2009-07-31 Thread Alejandro Forero Cuervo
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

Re: [Chicken-users] (abs 2147483648) evaluates to negative number

2009-07-31 Thread John Cowan
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

Re: [Chicken-users] (abs 2147483648) evaluates to negative number

2009-07-31 Thread John Cowan
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

Re: [Chicken-users] (abs 2147483648) evaluates to negative number

2009-07-31 Thread Jim Ursetto
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