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.
This commit is contained in:
jb 1998-05-09 11:33:22 +00:00
parent 61f94cc545
commit 966bd98970

View File

@ -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) {