summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/etc/etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 9f2b459..2bd2e30 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -557,7 +557,7 @@ etc_getgrent(VALUE obj)
return Qnil;
}
-#define numberof(array) (sizeof(array) / sizeof(*array))
+#define numberof(array) (sizeof(array) / sizeof(*(array)))
#ifdef _WIN32
VALUE rb_w32_special_folder(int type);