diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-02 00:51:43 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-02 00:51:43 +0000 |
commit | 9b6175b2823238a54068e20f0b3558de803413d2 (patch) | |
tree | d8a000818f99e64c839e5865b876baf7728d21ed /enum.c | |
parent | 832b601e49fd402ec7f30b36a95473131e93ae94 (diff) | |
download | ruby-9b6175b2823238a54068e20f0b3558de803413d2.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |