Fixed bug in bihom.c.
authorBen Lynn <benlynn@gmail.com>
Mon, 15 Sep 2008 11:43:08 +0000 (15 04:43 -0700)
committerBen Lynn <benlynn@gmail.com>
Mon, 15 Sep 2008 11:43:08 +0000 (15 04:43 -0700)
bihom.c

diff --git a/bihom.c b/bihom.c
index 811a933..7fde217 100644 (file)
--- 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);