summaryrefslogtreecommitdiffstats
path: root/libdimension/prtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/prtree.c')
-rw-r--r--libdimension/prtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdimension/prtree.c b/libdimension/prtree.c
index f5ce68f..cb09b84 100644
--- a/libdimension/prtree.c
+++ b/libdimension/prtree.c
@@ -482,7 +482,7 @@ dmnsn_new_prtree(const dmnsn_array *objects)
dmnsn_delete_pseudo_prtree(pseudo);
}
- dmnsn_prtree *prtree = dmnsn_malloc(sizeof(dmnsn_prtree *));
+ dmnsn_prtree *prtree = dmnsn_malloc(sizeof(dmnsn_prtree));
dmnsn_list_get(dmnsn_list_first(leaves), &prtree->root);
prtree->unbounded = dmnsn_array_from_list(unbounded);