From e63a9901412d465cd90143d658fda8fa938d7f8c Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 18 Apr 2002 08:46:18 +0000 Subject: * re.c (rb_reg_expr_str): should treat backslash specially in escaping. * io.c: complete off_t handling; missing argument for fptr_finalize(); polished rb_scan_args call. * dir.c: wrap multi-statment macro by do { } while (0) * eval.c, numeric,c, sprintf.c, util.c: ditto. * bignum.c (rb_big_eq): check `y == x' if y is neither Fixnum, Bignum, nor Float. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index 301dd95166..4b5ec822f4 100644 --- a/enum.c +++ b/enum.c @@ -6,7 +6,7 @@ $Date$ created at: Fri Oct 1 15:15:19 JST 1993 - Copyright (C) 1993-2001 Yukihiro Matsumoto + Copyright (C) 1993-2002 Yukihiro Matsumoto **********************************************************************/ @@ -172,12 +172,12 @@ static VALUE enum_collect(obj) VALUE obj; { - VALUE tmp; + VALUE ary; - tmp = rb_ary_new(); - rb_iterate(rb_each, obj, rb_block_given_p() ? collect_i : collect_all, tmp); + ary = rb_ary_new(); + rb_iterate(rb_each, obj, rb_block_given_p() ? collect_i : collect_all, ary); - return tmp; + return ary; } static VALUE -- cgit v1.2.3