1
0
Fork 0
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:
nobu 2017-12-22 01:12:02 +00:00
parent f2aa7f409a
commit 6e0074d0ff

6
iseq.c
View file

@ -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 {