From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#14863: bitwise-bit-count is wrong for negative arguments Date: Sun, 14 Jul 2013 14:14:05 -0400 Message-ID: <87li5957rm.fsf@tines.lan> References: <87hafxdv9w.fsf@industria.weinholt.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373825709 10152 80.91.229.3 (14 Jul 2013 18:15:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Jul 2013 18:15:09 +0000 (UTC) Cc: 14863-done@debbugs.gnu.org To: =?UTF-8?Q?G=C3=B6ran?= Weinholt Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jul 14 20:15:11 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UyQpC-0006nN-81 for guile-bugs@m.gmane.org; Sun, 14 Jul 2013 20:15:10 +0200 Original-Received: from localhost ([::1]:48638 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyQpB-00006b-NV for guile-bugs@m.gmane.org; Sun, 14 Jul 2013 14:15:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyQp7-0008WC-FT for bug-guile@gnu.org; Sun, 14 Jul 2013 14:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UyQp6-0004iN-95 for bug-guile@gnu.org; Sun, 14 Jul 2013 14:15:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UyQp5-0004hS-Q8 for bug-guile@gnu.org; Sun, 14 Jul 2013 14:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UyQp5-0003C9-IA for bug-guile@gnu.org; Sun, 14 Jul 2013 14:15:03 -0400 Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Sun, 14 Jul 2013 18:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 14863 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 14863@debbugs.gnu.org, mhw@netris.org, goran@weinholt.se Original-Received: via spool by 14863-done@debbugs.gnu.org id=D14863.137382567412205 (code D ref 14863); Sun, 14 Jul 2013 18:15:02 +0000 Original-Received: (at 14863-done) by debbugs.gnu.org; 14 Jul 2013 18:14:34 +0000 Original-Received: from localhost ([127.0.0.1]:54149 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UyQob-0003Ak-0f for submit@debbugs.gnu.org; Sun, 14 Jul 2013 14:14:33 -0400 Original-Received: from world.peace.net ([96.39.62.75]:51570 ident=hope0) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UyQoY-0003AU-67 for 14863-done@debbugs.gnu.org; Sun, 14 Jul 2013 14:14:30 -0400 Original-Received: from 209-6-120-240.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com ([209.6.120.240] helo=tines.lan) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UyQoR-0003pG-I8; Sun, 14 Jul 2013 14:14:23 -0400 In-Reply-To: <87hafxdv9w.fsf@industria.weinholt.se> ("=?UTF-8?Q?G=C3=B6ran?= Weinholt"'s message of "Sun, 14 Jul 2013 17:19:07 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7212 Archived-At: G=C3=B6ran Weinholt 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 =3D 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=3Dguile.git;a=3Dcommitdiff;h=3De8f329= 972666db6c9d4644619473e14d54db3a80 Mark