diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-16 14:43:34 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-16 14:43:34 +0000 |
| commit | 5483bf268dc94f1f525067bf30b69caebbd6c77b (patch) | |
| tree | 19e033137cb5440a51c1e4f98d3d14ad66e3bcb2 | |
| parent | cc0f1af4f63176708b1e47ad94eb5fbd175ada5a (diff) | |
| download | ruby-5483bf268dc94f1f525067bf30b69caebbd6c77b.tar.gz ruby-5483bf268dc94f1f525067bf30b69caebbd6c77b.tar.xz ruby-5483bf268dc94f1f525067bf30b69caebbd6c77b.zip | |
* enumerator.c (Init_Enumerator): wrong argument specs.
[ruby-core:05481]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | enumerator.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Sat Jul 16 23:43:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * enumerator.c (Init_Enumerator): wrong argument specs. + [ruby-core:05481] + Sat Jul 16 15:52:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp> * win32/win32.[hc]: constified socket functions. [ruby-dev:26553] diff --git a/enumerator.c b/enumerator.c index 734bd8057..d1cbd76b6 100644 --- a/enumerator.c +++ b/enumerator.c @@ -404,8 +404,8 @@ enumerator_with_index(obj) void Init_Enumerator() { - rb_define_method(rb_mKernel, "to_enum", obj_to_enum, -2); - rb_define_method(rb_mKernel, "enum_for", obj_to_enum, -2); + rb_define_method(rb_mKernel, "to_enum", obj_to_enum, -1); + rb_define_method(rb_mKernel, "enum_for", obj_to_enum, -1); rb_define_method(rb_mEnumerable, "enum_with_index", enumerator_enum_with_index, 0); rb_define_method(rb_mEnumerable, "each_slice", enum_each_slice, 1); |
