summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-08 15:47:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-08 15:47:52 +0000
commit08a4d1af3f08daed2cd3021fefba047bc2764a00 (patch)
tree2270ef8e7a6c6e856d3e2581f6f5b6aec1d7ce47 /ext
parent787686ffa7a91e007cd5999097fa337823cdf975 (diff)
* ext/etc/etc.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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);