[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Chicken-janitors] #62: abs() argument truncated on 64-bit
From: |
Chicken Trac |
Subject: |
[Chicken-janitors] #62: abs() argument truncated on 64-bit |
Date: |
Fri, 31 Jul 2009 18:24:50 -0000 |
#62: abs() argument truncated on 64-bit
----------------------------+-----------------------------------------------
Reporter: zbigniew | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: core libraries | Version: 4.0.x
Keywords: |
----------------------------+-----------------------------------------------
Reported by Alejandro:
> 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.
Using labs() instead of abs() should fix the issue
--
Ticket URL: <http://www.irp.oist.jp/trac/chicken/ticket/62>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.
- [Chicken-janitors] #62: abs() argument truncated on 64-bit,
Chicken Trac <=