Subject: Re: bug#21901: bit shift wrong on maximal right shift

From: Mark H Weaver <[email-masked]>
Date: Sun, 14 Oct 2018 05:40:51 -0400

Zefram <[email-masked]> writes:

> With Guile 2.0.11:
>
> scheme@(guile-user)> (ash 123 (ash -1 63))
> $1 = 123
>
> Correct result would of course be zero.  Problem only occurs for
> exactly this shift distance: one bit less produces the right answer.

Nice catch!

It's finally fixed in commit 1990aa916382d0afcebd5315a6d6f555949ff654 on
the stable-2.2 branch.  The fix will be in Guile 2.2.5.

Thanks for the report.

      Mark