Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch to use cmp_str_at for substring comparisons.

  • Loading branch information...
commit 2dfea4ed7300b2b1e96b3d13f955906436ae0459 1 parent 2a8a5a9
@pmichaud pmichaud authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/PAST/Compiler-Regex.pir
View
4 src/PAST/Compiler-Regex.pir
@@ -739,8 +739,8 @@ second child of this node.
ops.'push_pirop'('sub', '$I11', pos, off)
if ignorecase goto literal_ignorecase
if litlen == "1" goto literal_1
- ops.'push_pirop'('substr', '$S10', tgt, '$I11', litlen)
- ops.'push_pirop'('ne', '$S10', lpost, fail)
+ ops.'push_pirop'('cmp_str_at', '$I11', tgt, lpost, '$I11', litlen)
+ ops.'push_pirop'('ne', '$I11', 0, fail)
goto literal_pass
literal_1:
$S0 = lpast
Please sign in to comment.
Something went wrong with that request. Please try again.