Opened 5 years ago

Closed 3 years ago

#1096 closed defect (fixed)

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

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


Found by David Krenzlin on #chicken

$ csi -n
(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)
#;2> (fixnum? most-negative-fixnum)

Works fine with the numbers egg's version.

Change History (3)

comment:1 Changed 5 years ago by certainty

  • Priority changed from major to minor

comment:2 Changed 4 years ago by sjamaan

  • Milestone changed from 4.9.0 to 4.10.0

Not important enough to delay 4.9.0 any longer

comment:3 Changed 3 years ago by sjamaan

  • Milestone changed from 4.10.0 to 5.0
  • Resolution set to fixed
  • Status changed from new to closed

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.