Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use portable nqp::flip(...), not .reverse().
  • Loading branch information
jnthn committed Jun 22, 2013
1 parent 73cea21 commit f1e62c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/QRegex/P5Regex/Actions.nqp
Expand Up @@ -396,7 +396,7 @@ class QRegex::P5Regex::Actions is HLL::Actions {
method flip_ast($qast) {
return $qast unless nqp::istype($qast, QAST::Regex);
if $qast.rxtype eq 'literal' {
$qast[0] := $qast[0].reverse();
$qast[0] := nqp::flip($qast[0]);
}
elsif $qast.rxtype eq 'concat' {
my @tmp;
Expand Down
2 changes: 1 addition & 1 deletion src/QRegex/P6Regex/Actions.nqp
Expand Up @@ -679,7 +679,7 @@ class QRegex::P6Regex::Actions is HLL::Actions {
method flip_ast($qast) {
return $qast unless nqp::istype($qast, QAST::Regex);
if $qast.rxtype eq 'literal' {
$qast[0] := $qast[0].reverse();
$qast[0] := nqp::flip($qast[0]);
}
elsif $qast.rxtype eq 'concat' {
my @tmp;
Expand Down

0 comments on commit f1e62c5

Please sign in to comment.