diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-12 06:38:26 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-12 06:38:26 +0000 |
commit | 8d760c0727ea93ab58d9285817e76980320bc236 (patch) | |
tree | fa0cf0f6e2604eefa3ff3fea1212ef16d361c260 /iseq.c | |
parent | d868d9cbfb8118f3bf2f4003ef5e2a146ee744d9 (diff) | |
download | ruby-8d760c0727ea93ab58d9285817e76980320bc236.tar.gz ruby-8d760c0727ea93ab58d9285817e76980320bc236.tar.xz ruby-8d760c0727ea93ab58d9285817e76980320bc236.zip |
* iseq.c (simple_default_value): allow plain strings as default
values.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r-- | iseq.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1285,6 +1285,9 @@ simple_default_value(const VALUE *seq, const VALUE *eseq) case BIN(putnil): val = Qnil; goto got; + case BIN(putstring): + val = rb_str_new3(*seq++); + goto got; case BIN(putobject): val = *seq++; got: |