Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Replace deprecated in-place substr ops
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Apr 27, 2010
1 parent f17b2b7 commit c84044b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lua51.pir
Expand Up @@ -136,14 +136,14 @@ used in F<languages/lua/src/POSTGrammar.tg>
$I0 = index $S0, "/"
L1:
unless $I0 >= 0 goto L2
substr $S0, $I0, 1, "."
$S0 = replace $S0, $I0, 1, "."
$I0 = index $S0, "/", $I0
goto L1
L2:
$I0 = index $S0, "\\"
L3:
unless $I0 >= 0 goto L4
substr $S0, $I0, 1, "."
$S0 = replace $S0, $I0, 1, "."
$I0 = index $S0, "\\", $I0
goto L3
L4:
Expand Down

0 comments on commit c84044b

Please sign in to comment.