diff options
author | dholland <dholland@NetBSD.org> | 2008-02-24 06:07:06 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-02-24 06:07:06 +0000 |
commit | 84200264cf0a41781f9ebd56643526065acec647 (patch) | |
tree | f64479ee04fe96f66a4bf7ca3f2b92e75da8f3a1 /monop/roll.c | |
parent | 26ed5a094d93bb19c3fa7e2a29ccca62a7955c64 (diff) | |
download | bsdgames-darwin-84200264cf0a41781f9ebd56643526065acec647.tar.gz bsdgames-darwin-84200264cf0a41781f9ebd56643526065acec647.tar.zst bsdgames-darwin-84200264cf0a41781f9ebd56643526065acec647.zip |
Fix a bit more lint.
Diffstat (limited to 'monop/roll.c')
-rw-r--r-- | monop/roll.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/monop/roll.c b/monop/roll.c index 43f42fc1..ccae9d5a 100644 --- a/monop/roll.c +++ b/monop/roll.c @@ -1,4 +1,4 @@ -/* $NetBSD: roll.c,v 1.12 2008/02/24 02:58:33 dholland Exp $ */ +/* $NetBSD: roll.c,v 1.13 2008/02/24 06:07:06 dholland Exp $ */ /* * Copyright (c) 1980, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)roll.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: roll.c,v 1.12 2008/02/24 02:58:33 dholland Exp $"); +__RCSID("$NetBSD: roll.c,v 1.13 2008/02/24 06:07:06 dholland Exp $"); #endif #endif /* not lint */ @@ -50,10 +50,10 @@ int roll(ndie, nsides) int ndie, nsides; { - int tot; + long tot; tot = 0; while (ndie--) tot += (random() % nsides) + 1; - return tot; + return (int)tot; } |