summaryrefslogtreecommitdiffstats
path: root/array.h
diff options
context:
space:
mode:
Diffstat (limited to 'array.h')
-rw-r--r--array.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.h b/array.h
index 543c3dfe..59ac356f 100644
--- a/array.h
+++ b/array.h
@@ -47,7 +47,7 @@
} \
} while (0)
-#define ARRAY_EMPTY(a) ((a) == NULL || (a)->num == 0)
+#define ARRAY_EMPTY(a) (((void *) (a)) == NULL || (a)->num == 0)
#define ARRAY_LENGTH(a) ((a)->num)
#define ARRAY_DATA(a) ((a)->list)