From 8a42e85d0426ddf9f416b772490cbfd961544fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Sat, 10 Dec 2016 11:51:32 +0100 Subject: [PATCH] Better explanation of error. --- src/list.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/list.c b/src/list.c index 51bfc48..070edb6 100644 --- a/src/list.c +++ b/src/list.c @@ -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);