From 9b6175b2823238a54068e20f0b3558de803413d2 Mon Sep 17 00:00:00 2001 From: naruse Date: Sat, 2 Jun 2018 00:51:43 +0000 Subject: [PATCH] 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 --- enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/enum.c b/enum.c index b9b9ca7b7a..c482e7b8ce 100644 --- a/enum.c +++ b/enum.c @@ -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