ruby-changes:18522
From: akr <ko1@a...>
Date: Fri, 14 Jan 2011 23:28:20 +0900 (JST)
Subject: [ruby-changes:18522] Ruby:r30545 (trunk): * vm_method.c: parenthesize macro arguments.
akr 2011-01-14 23:26:27 +0900 (Fri, 14 Jan 2011) New Revision: 30545 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30545 Log: * vm_method.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/vm_method.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30544) +++ ChangeLog (revision 30545) @@ -1,3 +1,7 @@ +Fri Jan 14 23:25:55 2011 Tanaka Akira <akr@f...> + + * vm_method.c: parenthesize macro arguments. + Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@r...> * test/net/imap/test_imap.rb: call neither logout nor disconnect Index: vm_method.c =================================================================== --- vm_method.c (revision 30544) +++ vm_method.c (revision 30545) @@ -285,10 +285,10 @@ #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); \ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/