Subject: bitwise-bit-count is wrong for negative arguments
From: Göran Weinholt <[email-masked]>
To: [email-masked]
Date: Sun, 14 Jul 2013 17:19:07 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

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 <[email-masked]>
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.