summaryrefslogtreecommitdiffstats
path: root/cribbage/crib.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2012-10-13 20:36:06 +0000
committerdholland <dholland@NetBSD.org>2012-10-13 20:36:06 +0000
commit88ff9c0697c57951fd41e8543aacb033ef78a94f (patch)
treedce2a1f4622a9d00861b042ed93f1b843030f00a /cribbage/crib.c
parentd95245bbc4af79f67d7ab65fcd4fa4d6855dc849 (diff)
downloadbsdgames-darwin-88ff9c0697c57951fd41e8543aacb033ef78a94f.tar.gz
bsdgames-darwin-88ff9c0697c57951fd41e8543aacb033ef78a94f.tar.zst
bsdgames-darwin-88ff9c0697c57951fd41e8543aacb033ef78a94f.zip
Pass -Wstrict-overflow, and while here, don't read from index -1 of
an array.
Diffstat (limited to 'cribbage/crib.c')
-rw-r--r--cribbage/crib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cribbage/crib.c b/cribbage/crib.c
index aef76a8a..130c3212 100644
--- a/cribbage/crib.c
+++ b/cribbage/crib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: crib.c,v 1.24 2009/08/12 05:48:04 dholland Exp $ */
+/* $NetBSD: crib.c,v 1.25 2012/10/13 20:36:06 dholland Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
#if 0
static char sccsid[] = "@(#)crib.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: crib.c,v 1.24 2009/08/12 05:48:04 dholland Exp $");
+__RCSID("$NetBSD: crib.c,v 1.25 2012/10/13 20:36:06 dholland Exp $");
#endif
#endif /* not lint */
@@ -460,7 +460,7 @@ prcrib(BOOLEAN mycrib, BOOLEAN blank)
* Handle all the pegging...
*/
static CARD Table[14];
-static int Tcnt;
+static unsigned Tcnt;
static int
peg(BOOLEAN mycrib)