chicken-janitors
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Chicken-janitors] #1365: bitwise-not returns wrong values on non-negati


From: Chicken Trac
Subject: [Chicken-janitors] #1365: bitwise-not returns wrong values on non-negative arguments
Date: Thu, 20 Apr 2017 22:16:04 -0000

#1365: bitwise-not returns wrong values on non-negative arguments
----------------------------+--------------------------------
 Reporter:  johnwcowan      |                 Owner:
     Type:  defect          |                Status:  new
 Priority:  minor           |             Milestone:  someday
Component:  core libraries  |               Version:  4.12.0
 Keywords:                  |  Estimated difficulty:  trivial
----------------------------+--------------------------------
 The expression {{{(bitwise-not 0)}}} returns 4611686018427387903 (i.e.
 0x3fffffffffffffff) instead of -1.  The {{{fxnot}}} procedure does not
 have this problem, nor does the numbers-egg version of {{{bitwise-not}}}.
 However, {{{(bitwise-not -1)}}} correctly returns 0.

--
Ticket URL: <https://bugs.call-cc.org/ticket/1365>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]