From 2f1efb81e24a313c0e2bb492dd38934e8e73dcc3 Mon Sep 17 00:00:00 2001 From: jnthn Date: Sun, 18 Aug 2013 17:47:01 +0200 Subject: [PATCH] Fix some missing type-checking in typed arrays. --- src/core/Array.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/Array.pm b/src/core/Array.pm index 83037968ec2..b663899e723 100644 --- a/src/core/Array.pm +++ b/src/core/Array.pm @@ -105,7 +105,7 @@ class Array { # declared in BOOTSTRAP my Mu $iter := nqp::iterator($rpa); my int $i = 0; while $iter { - nqp::bindpos($rpa, $i, my $v = nqp::shift($iter)); + nqp::bindpos($rpa, $i, nqp::p6scalarfromdesc($!descriptor) = nqp::shift($iter)); $i = $i + 1; } nqp::findmethod(List, 'REIFY')(self, parcel, nextiter)