Opened 11 years ago

Closed 9 years ago

#1096 closed defect (fixed)

(abs most-negative-fixnum) does return negative value

Reported by: Christian Kellermann Owned by:
Priority: minor Milestone: 5.0
Component: core libraries Version: 4.8.x
Keywords: abs core Cc:
Estimated difficulty:

Description

Found by David Krenzlin on #chicken

$ csi -n
CHICKEN
(c) 2008-2014, The Chicken Team
(c) 2000-2007, Felix L. Winkelmann
Version 4.8.4 (rev 7dad446)
linux-unix-gnu-x86-64 [ 64bit manyargs dload ptables ]
compiled 2014-02-03 on devpool08 (Linux)
#;1> (abs most-negative-fixnum)
-4611686018427387904
#;2> (fixnum? most-negative-fixnum)
#t

Works fine with the numbers egg's version.

Change History (3)

comment:1 Changed 11 years ago by certainty

Priority: majorminor

comment:2 Changed 11 years ago by sjamaan

Milestone: 4.9.04.10.0

Not important enough to delay 4.9.0 any longer

comment:3 Changed 9 years ago by sjamaan

Milestone: 4.10.05.0
Resolution: fixed
Status: newclosed

This has been fixed in CHICKEN 5 through the numbers integration. I think it is acceptable to leave this problem in CHICKEN 4 because it's such an extreme edge case, and fixing it in CHICKEN 4 would require quite a bit of brainpower and time.

Note: See TracTickets for help on using tickets.