diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2001-08-19 17:12:44 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2001-08-19 17:12:44 +0000 |
commit | 39265ff3fd8cc671e910126e6378f443f2c99a70 (patch) | |
tree | 37a9760bd588a704d35a869e9f282542ddc9da8d /games/primes/pr_tbl.c | |
parent | ca597fff3d881e3a9b40b28415b35aceb766e1bb (diff) |
Use u_int32_t rather than unsigned long, both for platform invariance and
because the primes generation table really depends on there not being more
than 32 bits.
Diffstat (limited to 'games/primes/pr_tbl.c')
-rw-r--r-- | games/primes/pr_tbl.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/games/primes/pr_tbl.c b/games/primes/pr_tbl.c index 51ee1033a9d..cac95e399c8 100644 --- a/games/primes/pr_tbl.c +++ b/games/primes/pr_tbl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pr_tbl.c,v 1.2 1999/09/25 15:52:20 pjanzen Exp $ */ +/* $OpenBSD: pr_tbl.c,v 1.3 2001/08/19 17:12:43 pjanzen Exp $ */ /* $NetBSD: pr_tbl.c,v 1.3 1995/03/23 08:35:52 cgd Exp $ */ /* @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)pr_tbl.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: pr_tbl.c,v 1.2 1999/09/25 15:52:20 pjanzen Exp $"; +static char rcsid[] = "$OpenBSD: pr_tbl.c,v 1.3 2001/08/19 17:12:43 pjanzen Exp $"; #endif #endif /* not lint */ @@ -56,6 +56,7 @@ static char rcsid[] = "$OpenBSD: pr_tbl.c,v 1.2 1999/09/25 15:52:20 pjanzen Exp * and 65537^2 > 2^32-1. */ +#include <sys/types.h> #include "primes.h" const ubig prime[] = { @@ -550,4 +551,4 @@ const ubig prime[] = { }; /* pr_limit - largest prime in the prime table */ -const unsigned long *pr_limit = &prime[(sizeof(prime)/sizeof(prime[0]))-1]; +const ubig *pr_limit = &prime[(sizeof(prime)/sizeof(prime[0]))-1]; |