summaryrefslogtreecommitdiff
path: root/enum.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-02 00:51:43 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-02 00:51:43 (GMT)
commit9b6175b2823238a54068e20f0b3558de803413d2 (patch)
treed8a000818f99e64c839e5865b876baf7728d21ed /enum.c
parent832b601e49fd402ec7f30b36a95473131e93ae94 (diff)
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
Diffstat (limited to 'enum.c')
-rw-r--r--enum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/enum.c b/enum.c
index b9b9ca7..c482e7b 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