From 39265ff3fd8cc671e910126e6378f443f2c99a70 Mon Sep 17 00:00:00 2001 From: Paul Janzen Date: Sun, 19 Aug 2001 17:12:44 +0000 Subject: 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. --- games/primes/pr_tbl.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'games/primes/pr_tbl.c') 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 #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]; -- cgit v1.2.3