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

* vm_method.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-01-14 14:26:27 +00:00
parent 9d155ebf51
commit 8dc0eb6c4b
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Fri Jan 14 23:25:55 2011 Tanaka Akira <akr@fsij.org>
* vm_method.c: parenthesize macro arguments.
Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@ruby-lang.org>
* test/net/imap/test_imap.rb: call neither logout nor disconnect

View file

@ -285,10 +285,10 @@ rb_method_entry_make(VALUE klass, ID mid, rb_method_type_t type,
#define CALL_METHOD_HOOK(klass, hook, mid) do { \
const VALUE arg = ID2SYM(mid); \
VALUE recv_class = klass; \
ID hook_id = hook; \
if (FL_TEST(klass, FL_SINGLETON)) { \
recv_class = rb_ivar_get(klass, attached); \
VALUE recv_class = (klass); \
ID hook_id = (hook); \
if (FL_TEST((klass), FL_SINGLETON)) { \
recv_class = rb_ivar_get((klass), attached); \
hook_id = singleton_##hook; \
} \
rb_funcall2(recv_class, hook_id, 1, &arg); \