Skip to content

Commit

Permalink
use shifted integer in stead of iterator in array access (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
plobsing committed May 16, 2011
1 parent f2058de commit 34749b4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions runtime/parrot/library/NCI/Utils.pir
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ this will tend to make the toolkit init function much happier.
trans_loop:
unless i goto end_trans_loop
$I0 = shift i
$S0 = args[i]
$S0 = args[$I0]
$P0 = str_to_cstring(interp, $S0)
args[i] = $P0
args[$I0] = $P0
goto trans_loop
end_trans_loop:

Expand All @@ -243,7 +243,7 @@ this will tend to make the toolkit init function much happier.
free_loop:
unless i goto end_free_loop
$I0 = shift i
$P0 = args[i]
$P0 = args[$I0]
str_free_cstring($P0)
goto free_loop
end_free_loop:
Expand Down

0 comments on commit 34749b4

Please sign in to comment.