ruby-changes:18511
From: akr <ko1@a...>
Date: Thu, 13 Jan 2011 20:50:22 +0900 (JST)
Subject: [ruby-changes:18511] Ruby:r30534 (trunk): * vm_insnhelper.c: parenthesize macro arguments.
akr 2011-01-13 20:49:54 +0900 (Thu, 13 Jan 2011) New Revision: 30534 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30534 Log: * vm_insnhelper.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/vm_insnhelper.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30533) +++ ChangeLog (revision 30534) @@ -1,3 +1,7 @@ +Thu Jan 13 20:49:19 2011 Tanaka Akira <akr@f...> + + * vm_insnhelper.c: parenthesize macro arguments. + Thu Jan 13 13:21:00 2011 Kenta Murata <mrkn@m...> * vm_dump.c: delete dashes to make lines 80 chars, Patched by Index: vm_insnhelper.c =================================================================== --- vm_insnhelper.c (revision 30533) +++ vm_insnhelper.c (revision 30534) @@ -132,15 +132,15 @@ } #define VM_CALLEE_SETUP_ARG(ret, th, iseq, orig_argc, orig_argv, block) \ - if (LIKELY(iseq->arg_simple & 0x01)) { \ + if (LIKELY((iseq)->arg_simple & 0x01)) { \ /* simple check */ \ - if (orig_argc != iseq->argc) { \ - argument_error(iseq, orig_argc, iseq->argc); \ + if ((orig_argc) != (iseq)->argc) { \ + argument_error((iseq), (orig_argc), (iseq)->argc); \ } \ - ret = 0; \ + (ret) = 0; \ } \ else { \ - ret = vm_callee_setup_arg_complex(th, iseq, orig_argc, orig_argv, block); \ + (ret) = vm_callee_setup_arg_complex((th), (iseq), (orig_argc), (orig_argv), (block)); \ } static inline int -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/