Created
November 14, 2016 20:32
-
-
Save zoffixznet/a4e226de46787975fc56bc2c56ce5a0b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/core/Junction.pm b/src/core/Junction.pm | |
index 4ff9e10..419ca04 100644 | |
--- a/src/core/Junction.pm | |
+++ b/src/core/Junction.pm | |
@@ -33,7 +33,7 @@ my class Junction { # declared in BOOTSTRAP | |
nqp::stmts( | |
nqp::while( | |
(nqp::islt_i($i,$elems) | |
- && nqp::if(nqp::isconcrete(nqp::atpos($!storage,$i)),0,1)), | |
+ && nqp::if(nqp::atpos($!storage,$i).defined,0,1)), | |
($i = nqp::add_i($i,1)) | |
), | |
nqp::p6bool(nqp::islt_i($i,$elems)) | |
@@ -43,7 +43,7 @@ my class Junction { # declared in BOOTSTRAP | |
nqp::stmts( | |
nqp::while( | |
(nqp::islt_i($i,$elems) | |
- && nqp::isconcrete(nqp::atpos($!storage,$i))), | |
+ && nqp::atpos($!storage,$i)).defined, | |
($i = nqp::add_i($i,1)) | |
), | |
nqp::p6bool(nqp::iseq_i($i,$elems)) | |
@@ -53,7 +53,7 @@ my class Junction { # declared in BOOTSTRAP | |
nqp::stmts( | |
nqp::while( | |
(nqp::islt_i($i,$elems) | |
- && nqp::if(nqp::isconcrete(nqp::atpos($!storage,$i)),0,1)), | |
+ && nqp::if(nqp::atpos($!storage,$i).defined,0,1)), | |
($i = nqp::add_i($i,1)) | |
), | |
nqp::p6bool(nqp::iseq_i($i,$elems)) | |
@@ -65,7 +65,7 @@ my class Junction { # declared in BOOTSTRAP | |
(nqp::islt_i(($i = nqp::add_i($i,1)),$elems) | |
&& nqp::isle_i($seen,1)), | |
nqp::if( | |
- nqp::isconcrete(nqp::atpos($!storage,$i)), | |
+ nqp::atpos($!storage,$i).defined, | |
($seen = nqp::add_i($seen,1)) | |
) | |
), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment