ruby-changes:51343
From: naruse <ko1@a...>
Date: Sat, 2 Jun 2018 09:51:47 +0900 (JST)
Subject: [ruby-changes:51343] naruse:r63549 (trunk): memo->u3.cnt is long not int [Bug #14805]
naruse 2018-06-02 09:51:43 +0900 (Sat, 02 Jun 2018) New Revision: 63549 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63549 Log: memo->u3.cnt is long not int [Bug #14805] Modified files: trunk/enum.c Index: enum.c =================================================================== --- enum.c (revision 63548) +++ enum.c (revision 63549) @@ -218,7 +218,7 @@ enum_count(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/enum.c#L218 memo = MEMO_NEW(item, 0, 0); rb_block_call(obj, id_each, 0, 0, func, (VALUE)memo); - return INT2NUM(memo->u3.cnt); + return LONG2NUM(memo->u3.cnt); } static VALUE -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/