mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
iseq.c (rb_insn_operand_intern): needs parenthesies
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f2aa7f409a
commit
6e0074d0ff
1 changed files with 3 additions and 3 deletions
6
iseq.c
6
iseq.c
|
@ -1420,9 +1420,9 @@ rb_insn_operand_intern(const rb_iseq_t *iseq,
|
|||
ret = rb_str_new_cstr(type_str);
|
||||
}
|
||||
else if (insn == BIN(defined) && op_no == 0 &&
|
||||
(enum defined_type)op == DEFINED_FUNC ? (ret = rb_fstring_cstr("func"), 1) :
|
||||
(enum defined_type)op == DEFINED_REF ? (ret = rb_fstring_cstr("ref"), 1) :
|
||||
(ret = rb_iseq_defined_string((enum defined_type)op)) != 0) {
|
||||
((enum defined_type)op == DEFINED_FUNC ? (ret = rb_fstring_cstr("func"), 1) :
|
||||
(enum defined_type)op == DEFINED_REF ? (ret = rb_fstring_cstr("ref"), 1) :
|
||||
(ret = rb_iseq_defined_string((enum defined_type)op)) != 0)) {
|
||||
/* ok */
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Reference in a new issue