From 815eca3e8f367a6fed50be59b10316b5028773aa Mon Sep 17 00:00:00 2001 From: Mubashshir Date: Wed, 5 Jun 2024 17:23:45 +0600 Subject: Add class declaration helper Signed-off-by: Mubashshir --- src/common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common.h') diff --git a/src/common.h b/src/common.h index 08b8c73..a9a39f2 100644 --- a/src/common.h +++ b/src/common.h @@ -13,7 +13,7 @@ (consumer)((ptr), ## __VA_ARGS__); \ strncpy((ptr), "", (size)) -#define array(type, size) ((type *) calloc (sizeof(type), (size))) +#define array(type, size) ((type *) calloc ((size), sizeof(type))) #define ref(x) const x * const #define mut(x) const x * #define ptr(x) x * -- cgit v1.2.3