summaryrefslogtreecommitdiffstats
path: root/monop/prop.c
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>2001-01-16 02:41:17 +0000
committercgd <cgd@NetBSD.org>2001-01-16 02:41:17 +0000
commit3930882ae2607ed6e84b7e01af5c2b18c4d2c7c3 (patch)
treec25365fc07bf8019da1c6b10ad733d1787b204be /monop/prop.c
parente7ff14a7b9f4e2b36dfff9a110a794738257fd69 (diff)
downloadbsdgames-darwin-3930882ae2607ed6e84b7e01af5c2b18c4d2c7c3.tar.gz
bsdgames-darwin-3930882ae2607ed6e84b7e01af5c2b18c4d2c7c3.tar.zst
bsdgames-darwin-3930882ae2607ed6e84b7e01af5c2b18c4d2c7c3.zip
avoid C sequence point issues warned about by development version of gcc.
Diffstat (limited to 'monop/prop.c')
-rw-r--r--monop/prop.c8
1 files changed, 4 insertions, 4 deletions
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;