From: Mark H Weaver <mhw@netris.org>
To: "Göran Weinholt" <goran@weinholt.se>
Cc: 14863@debbugs.gnu.org
Subject: bug#14863: bitwise-bit-count is wrong for negative arguments
Date: Tue, 16 Jul 2013 12:29:37 -0400 [thread overview]
Message-ID: <87hafu31u6.fsf@tines.lan> (raw)
In-Reply-To: <87ehay61iw.fsf@industria.weinholt.se> ("Göran Weinholt"'s message of "Tue, 16 Jul 2013 16:08:07 +0200")
Göran Weinholt <goran@weinholt.se> writes:
> Mark H Weaver <mhw@netris.org> writes:
>
>> Göran Weinholt <goran@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
prev parent reply other threads:[~2013-07-16 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-14 15:19 bug#14863: bitwise-bit-count is wrong for negative arguments Göran Weinholt
2013-07-14 18:14 ` Mark H Weaver
2013-07-16 14:08 ` Göran Weinholt
2013-07-16 16:29 ` Mark H Weaver [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87hafu31u6.fsf@tines.lan \
--to=mhw@netris.org \
--cc=14863@debbugs.gnu.org \
--cc=goran@weinholt.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).