Subject: bug#14863: closed (Re: bug#14863: bitwise-bit-count is wrong for negative arguments)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 14 Jul 2013 18:15:03 +0000

Your bug report

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

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
14863: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14863
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#14863: bitwise-bit-count is wrong for negative arguments
From: Mark H Weaver <[email-masked]>
To: Göran Weinholt <[email-masked]>
Cc: [email-masked]
Date: Sun, 14 Jul 2013 14:14:05 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Göran Weinholt <[email-masked]> writes:

> 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.

Indeed, thanks for the report.  Now fixed on the stable-2.0 branch.

http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=e8f329972666db6c9d4644619473e14d54db3a80

     Mark

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.