]> git.cworth.org Git - kub/commitdiff
Minor fixes to kub
authorKevin Worth <kevin@theworths.org>
Sat, 21 Jan 2006 07:42:39 +0000 (23:42 -0800)
committerCarl Worth <carl@theworths.org>
Sat, 27 Jan 2007 14:32:42 +0000 (06:32 -0800)
kub.c

diff --git a/kub.c b/kub.c
index cb2b8d9dbb0f2c19ab9425b173856c9b23e9c319..abe3b2d06dc4a708bcc69c40aa146465ab8f4f87 100644 (file)
--- a/kub.c
+++ b/kub.c
@@ -94,10 +94,11 @@ static int card_group_is_run(card_group_t *card_group)
            lowest = card_group->cards[i].number;
        }
     }
-    if (highest - lowest = card_group->num_cards - 1)
+    if (highest - lowest != card_group->num_cards - 1)
     {
-       return 1;
+       return 0;
     }
+    return 1;
 }