summaryrefslogtreecommitdiffstats
path: root/libdimension/interior.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-12-24 13:19:38 -0500
committerTavian Barnes <tavianator@gmail.com>2011-12-24 13:19:38 -0500
commita8181915a4aac7a37bdd62705e2eac1067eb1904 (patch)
tree4e90ce29b5fad0d34f268e5ac9d247c3ef034a3f /libdimension/interior.c
parentbabba43cd4d1b9c92a569f19acbe17e429193b01 (diff)
downloaddimension-a8181915a4aac7a37bdd62705e2eac1067eb1904.tar.xz
Use macros to initialize refcounts.
Diffstat (limited to 'libdimension/interior.c')
-rw-r--r--libdimension/interior.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/interior.c b/libdimension/interior.c
index a8e328c..24797a6 100644
--- a/libdimension/interior.c
+++ b/libdimension/interior.c
@@ -31,9 +31,9 @@ dmnsn_interior *
dmnsn_new_interior(void)
{
dmnsn_interior *interior = dmnsn_malloc(sizeof(dmnsn_interior));
- interior->ior = 1.0;
- interior->free_fn = NULL;
- interior->refcount = 1;
+ interior->ior = 1.0;
+ interior->free_fn = NULL;
+ DMNSN_REFCOUNT_INIT(interior);
return interior;
}