From: Mark H Weaver <mhw@netris.org>
To: "Göran Weinholt" <goran@weinholt.se>
Cc: 14864-done@debbugs.gnu.org
Subject: bug#14864: bitwise-arithmetic-shift-right is wrong for large shift amounts
Date: Sun, 14 Jul 2013 14:54:24 -0400 [thread overview]
Message-ID: <87hafx55wf.fsf@tines.lan> (raw)
In-Reply-To: <87a9lpdsyw.fsf@industria.weinholt.se> ("Göran Weinholt"'s message of "Sun, 14 Jul 2013 18:08:55 +0200")
Göran Weinholt <goran@weinholt.se> writes:
> bitwise-arithmetic-shift-right from (rnrs) is wrong for ridiculously
> large shift amounts:
>
> scheme@(guile-user)> (import (rnrs))
> scheme@(guile-user)> (bitwise-arithmetic-shift-right -2 (+ (greatest-fixnum) 1))
> $1 = -2
>
> The correct result is -1.
Thanks for the report. Now fixed in stable-2.0.
http://git.savannah.gnu.org/gitweb/?p=guile.git;a=commitdiff;h=7e8166f5bdb526c021c826943aaf050134cccc83
Mark
prev parent reply other threads:[~2013-07-14 18:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-14 16:08 bug#14864: bitwise-arithmetic-shift-right is wrong for large shift amounts Göran Weinholt
2013-07-14 18:54 ` 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=87hafx55wf.fsf@tines.lan \
--to=mhw@netris.org \
--cc=14864-done@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).