* iseq.c (simple_default_value): allow plain strings as default
values. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
208b52a3d3
commit
ee5f857a05
@ -1,3 +1,8 @@
|
|||||||
|
Thu Feb 12 15:28:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* iseq.c (simple_default_value): allow plain strings as default
|
||||||
|
values.
|
||||||
|
|
||||||
Wed Feb 11 18:09:41 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Feb 11 18:09:41 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* gc.c (define_final, undefine_final): shouldn't add/remove finalizer
|
* gc.c (define_final, undefine_final): shouldn't add/remove finalizer
|
||||||
|
3
iseq.c
3
iseq.c
@ -1285,6 +1285,9 @@ simple_default_value(const VALUE *seq, const VALUE *eseq)
|
|||||||
case BIN(putnil):
|
case BIN(putnil):
|
||||||
val = Qnil;
|
val = Qnil;
|
||||||
goto got;
|
goto got;
|
||||||
|
case BIN(putstring):
|
||||||
|
val = rb_str_new3(*seq++);
|
||||||
|
goto got;
|
||||||
case BIN(putobject):
|
case BIN(putobject):
|
||||||
val = *seq++;
|
val = *seq++;
|
||||||
got:
|
got:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user