Latest commit introduces undefined behavior in hgcd2.c

Hans Åberg haberg-1 at
Wed Sep 18 20:36:33 UTC 2019

> On 18 Sep 2019, at 21:37, Niels Möller <nisse at> wrote:
> …a problem, at least in theory, if it is "undefined behavior". I'm afraid I
> don't know these fine details of the C spec by heart.

It is undefined behavior according to the section “Shift operators” in

More information about the gmp-bugs mailing list