mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
832b601e49
commit
9b6175b282
1 changed files with 1 additions and 1 deletions
2
enum.c
2
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
|
||||
|
|
Loading…
Reference in a new issue