Skip to content

Commit f1e62c5

Browse files
committed
Use portable nqp::flip(...), not .reverse().
1 parent 73cea21 commit f1e62c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/QRegex/P5Regex/Actions.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
396396
method flip_ast($qast) {
397397
return $qast unless nqp::istype($qast, QAST::Regex);
398398
if $qast.rxtype eq 'literal' {
399-
$qast[0] := $qast[0].reverse();
399+
$qast[0] := nqp::flip($qast[0]);
400400
}
401401
elsif $qast.rxtype eq 'concat' {
402402
my @tmp;

src/QRegex/P6Regex/Actions.nqp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ class QRegex::P6Regex::Actions is HLL::Actions {
679679
method flip_ast($qast) {
680680
return $qast unless nqp::istype($qast, QAST::Regex);
681681
if $qast.rxtype eq 'literal' {
682-
$qast[0] := $qast[0].reverse();
682+
$qast[0] := nqp::flip($qast[0]);
683683
}
684684
elsif $qast.rxtype eq 'concat' {
685685
my @tmp;

0 commit comments

Comments
 (0)