GNU bug report logs -
#14863
bitwise-bit-count is wrong for negative arguments
Previous Next
Reported by: Göran Weinholt <goran <at> weinholt.se>
Date: Sun, 14 Jul 2013 15:45:02 UTC
Severity: normal
Done: Mark H Weaver <mhw <at> netris.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14863 in the body.
You can then email your comments to 14863 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#14863
; Package
guile
.
(Sun, 14 Jul 2013 15:45:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Göran Weinholt <goran <at> weinholt.se>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Sun, 14 Jul 2013 15:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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 <goran <at> weinholt.se>
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.
[Message part 2 (application/pgp-signature, inline)]
Reply sent
to
Mark H Weaver <mhw <at> netris.org>
:
You have taken responsibility.
(Sun, 14 Jul 2013 18:15:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Göran Weinholt <goran <at> weinholt.se>
:
bug acknowledged by developer.
(Sun, 14 Jul 2013 18:15:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 14863-done <at> debbugs.gnu.org (full text, mbox):
Göran Weinholt <goran <at> weinholt.se> 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
Information forwarded
to
bug-guile <at> gnu.org
:
bug#14863
; Package
guile
.
(Tue, 16 Jul 2013 14:10:02 GMT)
Full text and
rfc822 format available.
Message #13 received at 14863 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Mark H Weaver <mhw <at> netris.org> writes:
> Göran Weinholt <goran <at> weinholt.se> 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.
Regards,
--
Göran Weinholt <goran <at> weinholt.se>
20 JUSTICE KENNEDY: That seems odd. I mean,
21 Microsoft doesn't say please buy our disk because it's
22 the prettiest disk in the business.
[Message part 2 (application/pgp-signature, inline)]
Information forwarded
to
bug-guile <at> gnu.org
:
bug#14863
; Package
guile
.
(Tue, 16 Jul 2013 16:31:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 14863 <at> debbugs.gnu.org (full text, mbox):
Göran Weinholt <goran <at> weinholt.se> writes:
> Mark H Weaver <mhw <at> netris.org> writes:
>
>> Göran Weinholt <goran <at> weinholt.se> 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
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 14 Aug 2013 11:24:03 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 6 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.