From 971a4d94f074916c6612edd2c3e1090ca71bc531 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 15 Jan 2001 07:01:00 +0000 Subject: Mon Jan 15 16:00:07 2001 Yukihiro Matsumoto * pack.c (pack_unpack): should check associated pointer packed by pack("P"). restriction added. Sun Jan 14 21:49:28 2001 Koji Arai * sprintf.c (rb_f_sprintf): simple typo. binary base should be 2, not '2'. * re.c (rb_reg_s_last_match): should explicitly return nth match. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 2a5803c96e..bcda8065af 100644 --- a/hash.c +++ b/hash.c @@ -381,8 +381,8 @@ rb_hash_indexes(argc, argv, hash) indexes = rb_ary_new2(argc); for (i=0; iptr[i] = rb_hash_aref(hash, argv[i]); + RARRAY(indexes)->len++; } - RARRAY(indexes)->len = i; return indexes; } -- cgit v1.2.3