ruby-changes:49284
From: nobu <ko1@a...>
Date: Fri, 22 Dec 2017 10:18:05 +0900 (JST)
Subject: [ruby-changes:49284] nobu:r61403 (trunk): iseq.c (rb_insn_operand_intern): needs parenthesies
nobu 2017-12-22 10:12:02 +0900 (Fri, 22 Dec 2017) New Revision: 61403 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61403 Log: iseq.c (rb_insn_operand_intern): needs parenthesies Modified files: trunk/iseq.c Index: iseq.c =================================================================== --- iseq.c (revision 61402) +++ iseq.c (revision 61403) @@ -1420,9 +1420,9 @@ rb_insn_operand_intern(const rb_iseq_t * https://github.com/ruby/ruby/blob/trunk/iseq.c#L1420 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 { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/