Fix compiler warning
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Oct 2021 19:16:55 +0000 (21:16 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 2 Oct 2021 19:23:44 +0000 (21:23 +0200)
src/language/stats/median.c

index 2e09ab02cef0d21c621d8dbf6b6ca3eca624a47d..a27375a802a464597472521b64505fe0aaad3736 100644 (file)
@@ -253,7 +253,7 @@ median_execute (const struct dataset *ds,
          }
 
        results[v].n = count;
-       results[v].sorted_array = XCALLOC (hmap_count (&map), void*);
+       results[v].sorted_array = XCALLOC (hmap_count (&map), struct val_node *);
        results[v].var = var;
 
        HMAP_FOR_EACH (vn, struct val_node, node, &map)