From: Matthew Fernandez Date: Thu, 29 Dec 2022 21:42:15 +0000 (-0800) Subject: sparse SingleLinkedList_new_int: remove unnecessary cast X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da32ddc1fe4ecb51b67ca5ea40ff285050cb3d92;p=graphviz sparse SingleLinkedList_new_int: remove unnecessary cast --- diff --git a/lib/sparse/LinkedList.c b/lib/sparse/LinkedList.c index 6827263c3..84917f613 100644 --- a/lib/sparse/LinkedList.c +++ b/lib/sparse/LinkedList.c @@ -21,7 +21,7 @@ SingleLinkedList SingleLinkedList_new(void *data){ SingleLinkedList SingleLinkedList_new_int(int i){ int *data = gv_alloc(sizeof(int)); data[0] = i; - return SingleLinkedList_new((void*) data); + return SingleLinkedList_new(data); }