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) { \