memo->u3.cnt is long not int [Bug #14805]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2018-06-02 00:51:43 +00:00
parent 832b601e49
commit 9b6175b282
1 changed files with 1 additions and 1 deletions

2
enum.c
View File

@ -218,7 +218,7 @@ enum_count(int argc, VALUE *argv, VALUE obj)
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