changeset 48:7d55b2bf8152 default tip

vec: these macros literally never worked, oops
author Paper <paper@tflc.us>
date Sat, 09 Aug 2025 16:03:34 -0400
parents d26d22c602bd
children
files include/vec/vec.h
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/include/vec/vec.h	Sat Aug 09 16:02:40 2025 -0400
+++ b/include/vec/vec.h	Sat Aug 09 16:03:34 2025 -0400
@@ -456,8 +456,8 @@
 	(sizeof(vec_unaligned_##var##_) - (align - 1))
 #endif
 
-#define VEC_ALIGNED_ARRAY_LENGTH(var) \
-	(VEC_ALIGNED_ARRAY_SIZEOF(var)/sizeof(*var))
+#define VEC_ALIGNED_ARRAY_LENGTH(var, align) \
+	(VEC_ALIGNED_ARRAY_SIZEOF(var, align)/sizeof(*var))
 
 //////////////////////////////////////////////////////////////////////////////////////
 // predefined variants for each vector type