Skip to content

Commit 3047e97

Browse files
committed
AND fates with 0xffffffff, prep for longest-lits
1 parent 98e6cf4 commit 3047e97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/QRegex/Cursor.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ role NQPCursorRole is export {
324324
my $cur;
325325
my $rxname;
326326
while @fates {
327-
$rxname := nqp::atpos(@rxfate, nqp::pop_i(@fates));
327+
$rxname := nqp::atpos(@rxfate, nqp::bitand_i(nqp::pop_i(@fates), 0xffffffff));
328328
#nqp::say("invoking $rxname");
329329
$cur := self."$rxname"();
330330
@fates := @EMPTY if nqp::getattr_i($cur, $?CLASS, '$!pos') >= 0;

0 commit comments

Comments
 (0)