From 803c6f9e060133b68dcb10f603eae1173553a1b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Wed, 14 Dec 2016 23:42:20 +0100 Subject: [PATCH] `size_t' makes this safeguard unnecessary. --- src/list.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/list.c b/src/list.c index b92dda8..417f165 100644 --- a/src/list.c +++ b/src/list.c @@ -27,10 +27,6 @@ void deInitList(List *restrict l) { void addToList(List *l, mpz_t n) { if(l->end == l->size) { l->size += BLOCK_SIZE; - if(l->size == 0) { - fprintf(stderr, "`l->size' has overflowed!\n"); - exit(1); - } void *tmp = realloc(l->list, sizeof(mpz_t) * l->size); if(!tmp) { fprintf(stderr, "Failed to allocate more memory to list!\n");