ruby-changes:53130
From: ko1 <ko1@a...>
Date: Wed, 24 Oct 2018 11:12:40 +0900 (JST)
Subject: [ruby-changes:53130] ko1:r65344 (trunk): need a cast
ko1 2018-10-24 11:12:35 +0900 (Wed, 24 Oct 2018) New Revision: 65344 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65344 Log: need a cast Modified files: trunk/insns.def Index: insns.def =================================================================== --- insns.def (revision 65343) +++ insns.def (revision 65344) @@ -519,7 +519,7 @@ newhashfromarray https://github.com/ruby/ruby/blob/trunk/insns.def#L519 () (VALUE hash) { - VM_ASSERT(num * 2 == RARRAY_LEN(ary)); + VM_ASSERT(num * 2 == (rb_num_t)RARRAY_LEN(ary)); hash = rb_hash_new_with_size(num); rb_hash_bulk_insert(num * 2, RARRAY_CONST_PTR(ary), hash); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/