From 3ea6358f77c0854384be40052828ccc14a87b5e9 Mon Sep 17 00:00:00 2001 From: Al Date: Mon, 14 Sep 2015 16:50:08 -0400 Subject: [PATCH] [fix] vector zeros allocation --- src/vector_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vector_math.h b/src/vector_math.h index e650195f..1295e4ac 100644 --- a/src/vector_math.h +++ b/src/vector_math.h @@ -32,7 +32,7 @@ name *vector = name##_new_size(n); \ memset(vector->a, 0, n * sizeof(type)); \ vector->n = n; \ - return name##_new_value(n, (type)0); \ + return vector; \ } \ \ static inline type type##_array_max(type *array, size_t n) { \