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 | ee5f857a0542e5483e9bf25442fe9ed6a7f5e11c (patch) | |
tree | fa0cf0f6e2604eefa3ff3fea1212ef16d361c260 /iseq.c | |
parent | 208b52a3d3b2d1b33cbf23d5ea9761508fbb0195 (diff) | |
download | bundler-ee5f857a0542e5483e9bf25442fe9ed6a7f5e11c.tar.gz |
* 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
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: |