diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-08 15:47:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-08 15:47:52 +0000 |
commit | 08a4d1af3f08daed2cd3021fefba047bc2764a00 (patch) | |
tree | 2270ef8e7a6c6e856d3e2581f6f5b6aec1d7ce47 | |
parent | 787686ffa7a91e007cd5999097fa337823cdf975 (diff) | |
download | ruby-08a4d1af3f08daed2cd3021fefba047bc2764a00.tar.gz |
* ext/etc/etc.c: parenthesize macro arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/etc/etc.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Feb 9 00:47:18 2011 Tanaka Akira <akr@fsij.org> + + * ext/etc/etc.c: parenthesize macro arguments. + Tue Feb 8 19:38:00 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * misc/ruby-mode.el (ruby-expr-beg): fix for invalid nest errors. diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 9f2b4590b6..2bd2e30747 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); |