Fix compiler warning
[pspp] / src / language / stats / median.c
index 8fa38c5a692134506e5c71ff67255ee2c487378d..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), sizeof (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)