We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c9ac5fc + fd3e634 commit 5fb09ddCopy full SHA for 5fb09dd
1 file changed
src/neogb/modular.h
@@ -100,7 +100,7 @@ static inline void generate_lucky_primes(
100
101
lp->old = lp->ld;
102
lp->ld += nr_new_primes;
103
- lp->p = realloc(lp->p, (unsigned long)(lp->ld) * sizeof(uint32_t));
+ lp->p = (uint32_t *)realloc(lp->p, (unsigned long)(lp->ld) * sizeof(uint32_t));
104
105
mpz_t last_prime;
106
mpz_init(last_prime);
0 commit comments