Cast is unnecessary in C.

This commit is contained in:
Nicolás A. Ortega 2016-12-15 15:16:04 +01:00
parent 803c6f9e06
commit 591ee92971
No known key found for this signature in database
GPG Key ID: 614272579C2070D1

View File

@ -32,7 +32,7 @@ void addToList(List *l, mpz_t n) {
fprintf(stderr, "Failed to allocate more memory to list!\n");
exit(1);
}
l->list = (mpz_t*)tmp;
l->list = tmp;
}
mpz_init(l->list[l->end]);
mpz_set(l->list[l->end++], n);