From 3930882ae2607ed6e84b7e01af5c2b18c4d2c7c3 Mon Sep 17 00:00:00 2001 From: cgd Date: Tue, 16 Jan 2001 02:41:17 +0000 Subject: avoid C sequence point issues warned about by development version of gcc. --- monop/prop.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'monop/prop.c') diff --git a/monop/prop.c b/monop/prop.c index 5c4d27e1..c1a016f5 100644 --- a/monop/prop.c +++ b/monop/prop.c @@ -1,4 +1,4 @@ -/* $NetBSD: prop.c,v 1.6 1999/09/09 17:27:59 jsm Exp $ */ +/* $NetBSD: prop.c,v 1.7 2001/01/16 02:41:17 cgd Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)prop.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: prop.c,v 1.6 1999/09/09 17:27:59 jsm Exp $"); +__RCSID("$NetBSD: prop.c,v 1.7 2001/01/16 02:41:17 cgd Exp $"); #endif #endif /* not lint */ @@ -179,7 +179,7 @@ bid() cur_max = 0; num_in = num_play; while (num_in > 1 || (cur_max == 0 && num_in > 0)) { - i = ++i % num_play; + i = (i + 1) % num_play; if (in[i]) { do { (void)sprintf(buf, "%s: ", name_list[i]); @@ -200,7 +200,7 @@ bid() } if (cur_max != 0) { while (!in[i]) - i = ++i % num_play; + i = (i + 1) % num_play; printf("It goes to %s (%d) for $%d\n",play[i].name,i+1,cur_max); buy(i, &board[cur_p->loc]); play[i].money -= cur_max; -- cgit v1.2.3-56-ge451