[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gmp 'factorize.c' example bug, and suggested fix
From: |
Kevin Ryde |
Subject: |
Re: gmp 'factorize.c' example bug, and suggested fix |
Date: |
Fri, 21 Feb 2003 07:44:23 +1000 |
User-agent: |
Gnus/5.090013 (Oort Gnus v0.13) Emacs/21.2 (i386-pc-linux-gnu) |
John Pongsajapan <address@hidden> writes:
>
> immediately after 'goto target' S3, k value is sometimes negative
> and keeps counting down [presumably until it overflows and hits a
> positive number].
Thanks.
> i did not trace through the logic path that leads to k negative.
Normally k is supposed to be re-initialized with l, but when the gcd
after the k!=0 test reveals a factor, that isn't done.
--
All followups to address@hidden please.