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

* vm_insnhelper.c: parenthesize macro arguments.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-01-13 11:49:54 +00:00
parent 96874ec46e
commit def8c8c347
2 changed files with 9 additions and 5 deletions

View file

@ -1,3 +1,7 @@
Thu Jan 13 20:49:19 2011 Tanaka Akira <akr@fsij.org>
* vm_insnhelper.c: parenthesize macro arguments.
Thu Jan 13 13:21:00 2011 Kenta Murata <mrkn@mrkn.jp>
* vm_dump.c: delete dashes to make lines 80 chars, Patched by

View file

@ -132,15 +132,15 @@ argument_error(const rb_iseq_t *iseq, int miss_argc, int correct_argc)
}
#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