Better explanation of error.
This commit is contained in:
parent
dd38b53e31
commit
8a42e85d04
@ -31,8 +31,7 @@ void addToList(List *l, mpz_t n) {
|
|||||||
if(unlikely(l->end == l->size)) {
|
if(unlikely(l->end == l->size)) {
|
||||||
l->size += BLOCK_SIZE;
|
l->size += BLOCK_SIZE;
|
||||||
if(unlikely(l->size == 0)) {
|
if(unlikely(l->size == 0)) {
|
||||||
fprintf(stderr,
|
fprintf(stderr, "`l->size' has overflowed!\n");
|
||||||
"Size has reached limit of `long long int' type!\n");
|
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
void *tmp = realloc(l->list, sizeof(mpz_t) * l->size);
|
void *tmp = realloc(l->list, sizeof(mpz_t) * l->size);
|
||||||
|
Loading…
Reference in New Issue
Block a user