bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#14864: bitwise-arithmetic-shift-right is wrong for large shift amoun


From: Mark H Weaver
Subject: bug#14864: bitwise-arithmetic-shift-right is wrong for large shift amounts
Date: Sun, 14 Jul 2013 14:54:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Göran Weinholt <address@hidden> 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





reply via email to

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