Cast is unnecessary in C.
This commit is contained in:
parent
803c6f9e06
commit
591ee92971
@ -32,7 +32,7 @@ void addToList(List *l, mpz_t n) {
|
|||||||
fprintf(stderr, "Failed to allocate more memory to list!\n");
|
fprintf(stderr, "Failed to allocate more memory to list!\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
l->list = (mpz_t*)tmp;
|
l->list = tmp;
|
||||||
}
|
}
|
||||||
mpz_init(l->list[l->end]);
|
mpz_init(l->list[l->end]);
|
||||||
mpz_set(l->list[l->end++], n);
|
mpz_set(l->list[l->end++], n);
|
||||||
|
Loading…
Reference in New Issue
Block a user