From 966bd989707d6877ddcd5015a4263608ecbc4aa7 Mon Sep 17 00:00:00 2001 From: jb Date: Sat, 9 May 1998 11:33:22 +0000 Subject: Cast pointers to longs, not ints. Hopefully that's the last of the 64-bit cleaning of src/games. That is, without adding -Wall to the compiler flags. That's not a pretty sight. --- games/primes/primes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'games') diff --git a/games/primes/primes.c b/games/primes/primes.c index c2e0702..ceec7e0 100644 --- a/games/primes/primes.c +++ b/games/primes/primes.c @@ -303,10 +303,10 @@ primes(start, stop) do { /* determine the factor's initial sieve point */ q = (char *)(start%factor); /* temp storage for mod */ - if ((int)q & 0x1) { - q = &table[(factor-(int)q)/2]; + if ((long)q & 0x1) { + q = &table[(factor-(long)q)/2]; } else { - q = &table[q ? factor-((int)q/2) : 0]; + q = &table[q ? factor-((long)q/2) : 0]; } /* sive for our current factor */ for ( ; q < tab_lim; q += factor) { -- cgit v1.1