From 591ee929718562cac8512a6b821fc6480fc237c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Thu, 15 Dec 2016 15:16:04 +0100 Subject: [PATCH] Cast is unnecessary in C. --- src/list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/list.c b/src/list.c index 417f165..58c6bac 100644 --- a/src/list.c +++ b/src/list.c @@ -32,7 +32,7 @@ void addToList(List *l, mpz_t n) { fprintf(stderr, "Failed to allocate more memory to list!\n"); exit(1); } - l->list = (mpz_t*)tmp; + l->list = tmp; } mpz_init(l->list[l->end]); mpz_set(l->list[l->end++], n);