mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-24 10:52:36 +01:00
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:
parent
6f6040ffb1
commit
a217dc6fbc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=35892
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user