]> granicus.if.org Git - graphviz/commitdiff
sparse SingleLinkedList_new_int: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Dec 2022 21:42:15 +0000 (13:42 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Dec 2022 16:33:58 +0000 (08:33 -0800)
lib/sparse/LinkedList.c

index 6827263c3c9aef620facaebdf14ccde8676dcee3..84917f613f61a5a30f791996a1c1b0e861f58447 100644 (file)
@@ -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);
 }