summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 06:38:26 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-12 06:38:26 +0000
commitee5f857a0542e5483e9bf25442fe9ed6a7f5e11c (patch)
treefa0cf0f6e2604eefa3ff3fea1212ef16d361c260 /iseq.c
parent208b52a3d3b2d1b33cbf23d5ea9761508fbb0195 (diff)
downloadbundler-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iseq.c b/iseq.c
index 28c1a39f98..967b142425 100644
--- a/iseq.c
+++ b/iseq.c
@@ -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: