summaryrefslogtreecommitdiffstats
path: root/insns.def
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-06 11:24:42 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-06 11:24:42 +0000
commitd37c38692dde8e74a2d7c83b182f58ba4c45bc48 (patch)
tree3edaad10ab0f162c9f1de213f94b91a597307bf4 /insns.def
parentb0e3a28ddc1a4b0a52713171bbc4224444912c82 (diff)
downloadruby-d37c38692dde8e74a2d7c83b182f58ba4c45bc48.tar.gz
ruby-d37c38692dde8e74a2d7c83b182f58ba4c45bc48.tar.xz
ruby-d37c38692dde8e74a2d7c83b182f58ba4c45bc48.zip
* insns.def (invokeblock): fix of splat argument.
(splat same as normal method dispatch) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'insns.def')
-rw-r--r--insns.def4
1 files changed, 3 insertions, 1 deletions
diff --git a/insns.def b/insns.def
index 1ad6490f1..02ffe1167 100644
--- a/insns.def
+++ b/insns.def
@@ -1328,7 +1328,9 @@ invokeblock
if (BUILTIN_TYPE(iseq) != T_NODE) {
if (flag & VM_CALL_ARGS_SPLAT_BIT) {
VALUE ary = TOPN(0);
- if (CLASS_OF(ary) != rb_cArray) {
+ ary = rb_check_convert_type(ary, T_ARRAY, "Array", "to_splat");
+
+ if (NIL_P(ary)) {
/* not a [BUG] */
}
else {