summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-21 17:46:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-05-21 17:46:42 +0000
commitd547df4c537226112777086f52bc23f39eadb0e7 (patch)
tree8f9cdfb81716631dbd14d596997c3eae3a97bc6d
parent874eca3c042a42f7bd5de245a76f79d6ff4f5dcf (diff)
* eval.c (rb_eval): splat NODE_RESTARY. [ruby-dev:20268]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--eval.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e902af53d24..ac9afe951e9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Thu May 22 02:42:49 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+Thu May 22 02:46:38 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * eval.c (rb_eval): splat NODE_RESTARY. [ruby-dev:20268]
* eval.c (rb_thread_fd_close): raise for writing threads.
[ruby-dev:20269]
diff --git a/eval.c b/eval.c
index ffd3032907b..d2ceac5870d 100644
--- a/eval.c
+++ b/eval.c
@@ -2739,7 +2739,7 @@ rb_eval(self, n)
case NODE_RESTARY:
case NODE_RESTARY2:
- result = rb_ary_to_ary(rb_eval(self, node->nd_head));
+ result = splat_value(rb_eval(self, node->nd_head));
break;
case NODE_SPLAT: