1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/etc/etc.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-02-08 15:47:52 +00:00
parent 787686ffa7
commit 08a4d1af3f
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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);