From 4905959e348f3125e9d2c61543d524abbb06354f Mon Sep 17 00:00:00 2001 From: usa Date: Wed, 31 Oct 2007 16:53:04 +0000 Subject: [PATCH] * enum.c (enum_drop): fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ enum.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 79d344efbc..231bb24a61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Nov 1 01:52:23 2007 NAKAMURA Usaku + + * enum.c (enum_drop): fix typo. + Thu Nov 1 01:51:01 2007 NAKAMURA Usaku * vm_core.h (ruby_current_thread): RUBY_EXTERN'ed for probeprofiler. diff --git a/enum.c b/enum.c index 8ae49a94f3..968250c326 100644 --- a/enum.c +++ b/enum.c @@ -1491,8 +1491,8 @@ enum_drop(VALUE obj, VALUE n) { VALUE args[2]; - args[0] = rb_ary_new2(args[1]); args[1] = NUM2ULONG(n); + args[0] = rb_ary_new2(args[1]); rb_block_call(obj, id_each, 0, 0, drop_i, (VALUE)args); return args[0]; }