summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 1 insertions, 1 deletions
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 *