emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#14863: closed (bitwise-bit-count is wrong for nega


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#14863: closed (bitwise-bit-count is wrong for negative arguments)
Date: Sun, 14 Jul 2013 18:15:03 +0000

Your message dated Sun, 14 Jul 2013 14:14:05 -0400
with message-id <address@hidden>
and subject line Re: bug#14863: bitwise-bit-count is wrong for negative 
arguments
has caused the debbugs.gnu.org bug report #14863,
regarding bitwise-bit-count is wrong for negative arguments
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
14863: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14863
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 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: pgpL5lkHL3bO7.pgp
Description: PGP signature


--- End Message ---
--- Begin Message --- Subject: Re: bug#14863: bitwise-bit-count is wrong for negative arguments Date: Sun, 14 Jul 2013 14:14:05 -0400 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
Göran Weinholt <address@hidden> 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


--- End Message ---

reply via email to

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