bug-guile
[Top][All Lists]
Advanced

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

bug#14863: bitwise-bit-count is wrong for negative arguments


From: Göran Weinholt
Subject: bug#14863: bitwise-bit-count is wrong for negative arguments
Date: Sun, 14 Jul 2013 17:19:07 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

Hello schemers,

the bitwise-bit-count procedure from (rnrs) is wrong for negative
arguments in Guile 2.0.9:

scheme@(guile-user)> (import (rnrs))
scheme@(guile-user)> (bitwise-bit-count #b-101)
$1 = 1

The correct result is -2.

Regards,

-- 
Göran Weinholt <address@hidden>
13             MR. JAKES:  I think our economy was based on
14 industrial process.
15             JUSTICE SCALIA:  It was based on horses, for
16 Pete's sake.

Attachment: pgp7rMeuz2lbi.pgp
Description: PGP signature


reply via email to

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