Unverified Commit 8a42e85d authored by Nicolás A. Ortega's avatar Nicolás A. Ortega
Browse files

Better explanation of error.

parent dd38b53e
Pipeline #5340386 passed with stage
in 2 minutes and 35 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment