summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortakano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-14 04:15:32 +0000
committertakano32 <takano32@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-14 04:15:32 +0000
commitba91643eb18352a172c54db8725f8aeaf06f4734 (patch)
treecade95e2318c89203555c43f4b50c156e147d5c6
parentf0108fa417167e6d9d429f53c36ed17875c12777 (diff)
downloadruby-ba91643eb18352a172c54db8725f8aeaf06f4734.tar.gz
ruby-ba91643eb18352a172c54db8725f8aeaf06f4734.tar.xz
ruby-ba91643eb18352a172c54db8725f8aeaf06f4734.zip
* iseq.c: remove nil parameter from Proc#parameters
after rest appeared. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--iseq.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6fff51848..d7303f615 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Feb 14 13:14:18 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * iseq.c: remove nil parameter from Proc#parameters
+ after rest appeared.
+
Sat Feb 14 07:23:52 2009 NARUSE, Yui <naruse@ruby-lang.org>
* string.c (rb_external_str_new_with_enc): change evaluatioin order
diff --git a/iseq.c b/iseq.c
index 922d68537..18494550b 100644
--- a/iseq.c
+++ b/iseq.c
@@ -1304,7 +1304,6 @@ rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
for (i = 0; i < iseq->argc; i++) {
PARAM_TYPE(opt);
rb_ary_push(a, rb_id2name(PARAM_ID(i)) ? ID2SYM(PARAM_ID(i)) : Qnil);
- rb_ary_push(a, Qnil);
rb_ary_push(args, a);
}
}
@@ -1333,7 +1332,6 @@ rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
for (i = iseq->arg_post_start; i < r; i++) {
PARAM_TYPE(opt);
rb_ary_push(a, rb_id2name(PARAM_ID(i)) ? ID2SYM(PARAM_ID(i)) : Qnil);
- rb_ary_push(a, Qnil);
rb_ary_push(args, a);
}
}