summaryrefslogtreecommitdiffstats
path: root/libdimension/gradient.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-06 21:23:55 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-06 21:26:35 -0400
commitef98e35c9c44148611aa2c23325431d19405c781 (patch)
tree885b5485c115be24d74713b2af9e61357fcc9039 /libdimension/gradient.c
parentb9ffc8ca0a2f130a869ba780eeea6787760e860a (diff)
downloaddimension-ef98e35c9c44148611aa2c23325431d19405c781.tar.xz
malloc: New DMNSN_MALLOC() macro to save a sizeof().
Diffstat (limited to 'libdimension/gradient.c')
-rw-r--r--libdimension/gradient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdimension/gradient.c b/libdimension/gradient.c
index 53689d2..38b460b 100644
--- a/libdimension/gradient.c
+++ b/libdimension/gradient.c
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (C) 2010-2011 Tavian Barnes <tavianator@tavianator.com> *
+ * Copyright (C) 2010-2014 Tavian Barnes <tavianator@tavianator.com> *
* *
* This file is part of The Dimension Library. *
* *
@@ -41,7 +41,7 @@ dmnsn_new_gradient_pattern(dmnsn_vector orientation)
{
dmnsn_pattern *gradient = dmnsn_new_pattern();
- dmnsn_vector *payload = dmnsn_malloc(sizeof(dmnsn_vector));
+ dmnsn_vector *payload = DMNSN_MALLOC(dmnsn_vector);
*payload = dmnsn_vector_normalized(orientation);
gradient->pattern_fn = dmnsn_gradient_pattern_fn;