Better explanation of error.

This commit is contained in:
Nicolás A. Ortega 2016-12-10 11:51:32 +01:00
parent dd38b53e31
commit 8a42e85d04
No known key found for this signature in database
GPG Key ID: 614272579C2070D1

View File

@ -31,8 +31,7 @@ void addToList(List *l, mpz_t n) {
if(unlikely(l->end == l->size)) {
l->size += BLOCK_SIZE;
if(unlikely(l->size == 0)) {
fprintf(stderr,
"Size has reached limit of `long long int' type!\n");
fprintf(stderr, "`l->size' has overflowed!\n");
exit(1);
}
void *tmp = realloc(l->list, sizeof(mpz_t) * l->size);