|
From: | Philip McLaughlin |
Subject: | Re: Bug in factorize.c (in the demos folder) |
Date: | Mon, 24 Nov 2003 10:27:48 -0700 |
Paul, Thanks! Your solution is better. Regards, Phil McL On Nov 24, 2003, at 1:41 AM, Paul Zimmermann wrote:
I think a better fix would be: S3: if (k) { k--; goto S2; } since then k is never decremented from 0 to a huge value, and since k is reset when we go to the gcd, no need to decrement it. In that case, we probably want to change the initialization to k=0, so the loop is performed only once at the beginning. Paul Zimmermann
[Prev in Thread] | Current Thread | [Next in Thread] |