ruby-changes:53381
From: shyouhei <ko1@a...>
Date: Wed, 7 Nov 2018 17:03:16 +0900 (JST)
Subject: [ruby-changes:53381] shyouhei:r65597 (trunk): insns.def: forgot add cast [ci skip]
shyouhei 2018-11-07 17:03:10 +0900 (Wed, 07 Nov 2018) New Revision: 65597 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65597 Log: insns.def: forgot add cast [ci skip] See r65595 Modified files: trunk/insns.def Index: insns.def =================================================================== --- insns.def (revision 65596) +++ insns.def (revision 65597) @@ -469,7 +469,7 @@ expandarray https://github.com/ruby/ruby/blob/trunk/insns.def#L469 (..., VALUE ary) (...) // attr bool leaf = false; /* has rb_check_array_type() */ -// attr rb_snum_t sp_inc = num - 1 + (flag & 1 ? 1 : 0); +// attr rb_snum_t sp_inc = (rb_snum_t)num - 1 + (flag & 1 ? 1 : 0); { vm_expandarray(GET_SP(), ary, num, (int)flag); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/