From 88ff9c0697c57951fd41e8543aacb033ef78a94f Mon Sep 17 00:00:00 2001 From: dholland Date: Sat, 13 Oct 2012 20:36:06 +0000 Subject: Pass -Wstrict-overflow, and while here, don't read from index -1 of an array. --- cribbage/crib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cribbage/crib.c') 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) -- cgit v1.2.3-56-ge451