diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2014-05-31 12:32:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2014-05-31 12:32:24 -0400 |
commit | c9c85a530402541518dd585de682bb0ecdf7cf7b (patch) | |
tree | 80bc7eede025cd98983c0bcb271859ceed30fa1f /libdimension/bench | |
parent | 1de647b9d38528b640f8da473d50c04ef0674c58 (diff) | |
download | dimension-c9c85a530402541518dd585de682bb0ecdf7cf7b.tar.xz |
array: Add DMNSN_NEW_ARRAY macro.
Diffstat (limited to 'libdimension/bench')
-rw-r--r-- | libdimension/bench/prtree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/bench/prtree.c b/libdimension/bench/prtree.c index 11d831b..f05f04c 100644 --- a/libdimension/bench/prtree.c +++ b/libdimension/bench/prtree.c @@ -1,5 +1,5 @@ /************************************************************************* - * Copyright (C) 2009-2012 Tavian Barnes <tavianator@tavianator.com> * + * Copyright (C) 2009-2014 Tavian Barnes <tavianator@tavianator.com> * * * * This file is part of The Dimension Benchmark Suite. * * * @@ -79,7 +79,7 @@ main(void) return EXIT_FAILURE; } - dmnsn_array *objects = dmnsn_new_array(sizeof(dmnsn_object *)); + dmnsn_array *objects = DMNSN_NEW_ARRAY(dmnsn_object *); dmnsn_texture *texture = dmnsn_new_texture(); texture->pigment = dmnsn_new_pigment(); for (size_t i = 0; i < nobjects; ++i) { |