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: Mark H Weaver
Subject: bug#14863: bitwise-bit-count is wrong for negative arguments
Date: Tue, 16 Jul 2013 12:29:37 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Göran Weinholt <address@hidden> writes:

> Mark H Weaver <address@hidden> writes:
>
>> 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
>
> I just discovered that fxbit-count has the same bug.

Fixed in a1c9ecf0a46fb3b09a268030f790aa487d38a433.

     Thanks!
       Mark





reply via email to

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