@@ -338,8 +338,7 @@ role NQPCursorRole is export {
338
338
my @ fates := $ nfa . run (nqp ::getattr_s($ shared , ParseShared, ' $!target' ), $ ! pos );
339
339
340
340
# Update highwater mark.
341
- my int $ highwater := nqp ::getattr_i($ shared , ParseShared, ' $!highwater' );
342
- if $ ! pos > $ highwater {
341
+ if $ ! pos > nqp ::getattr_i($ shared , ParseShared, ' $!highwater' ) {
343
342
nqp ::bindattr_i($ shared , ParseShared, ' $!highwater' , $ ! pos );
344
343
}
345
344
@@ -389,9 +388,8 @@ role NQPCursorRole is export {
389
388
390
389
method ! alt (int $ pos , str $ name , @ labels = []) {
391
390
# Update highwater mark.
392
- my $ shared := $ ! shared ;
393
- my int $ highwater := nqp ::getattr_i($ shared , ParseShared, ' $!highwater' );
394
- if $ pos > $ highwater {
391
+ my $ shared := $ ! shared ;
392
+ if $ pos > nqp ::getattr_i($ shared , ParseShared, ' $!highwater' ) {
395
393
nqp ::bindattr_i($ shared , ParseShared, ' $!highwater' , $ pos );
396
394
}
397
395
@@ -946,7 +944,7 @@ class NQPCursor does NQPCursorRole {
946
944
while $ iter {
947
945
my $ curcap := nqp :: shift ($ iter );
948
946
my str $ name := nqp ::iterkey_s($ curcap );
949
- $ namecount ++ ;
947
+ ++ $ namecount ;
950
948
if nqp ::iterval($ curcap ) >= 2 {
951
949
$ onlyname := $ name if $ namecount == 1 ;
952
950
nqp :: ord ($ name ) < 58
@@ -980,7 +978,7 @@ class NQPCursor does NQPCursorRole {
980
978
my $ submatch := $ subcur . MATCH();
981
979
nqp :: push ($ dest , $ submatch );
982
980
}
983
- $ csi ++ ;
981
+ ++ $ csi ;
984
982
}
985
983
}
986
984
elsif ! nqp ::isnull(% caplist ) && % caplist {
@@ -1026,7 +1024,7 @@ class NQPCursor does NQPCursorRole {
1026
1024
}
1027
1025
}
1028
1026
}
1029
- $ csi ++ ;
1027
+ ++ $ csi ;
1030
1028
}
1031
1029
# {
1032
1030
# my $iter := nqp::iterator(%caplist);
0 commit comments