From: Ben Lynn Date: Mon, 15 Sep 2008 11:43:08 +0000 (-0700) Subject: Fixed bug in bihom.c. X-Git-Url: https://repo.or.cz/w/frac.git/commitdiff_plain/cf1c4804af8ce4298d2ae34eeafbd30afa1f3023 Fixed bug in bihom.c. --- diff --git a/bihom.c b/bihom.c index 811a933..7fde217 100644 --- a/bihom.c +++ b/bihom.c @@ -125,8 +125,8 @@ static void *bihom(cf_t cf) { return 0; } mpz_fdiv_qr(qr->s0, qr->s1, p->s0, p->s1); - if (mpz_cmp(qr->q0, qr->q0)) { - move_down(); + if (mpz_cmp(qr->s0, qr->r0)) { + move_down(); // Either way should work. return 0; } cf_put(cf, qr->p0);