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

Commit

Permalink
use the opcode 'iter' instead of a instantiation of 'Iterator'
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed Jul 20, 2009
1 parent 517eef4 commit 705f084
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/gl_binding.pir
Expand Up @@ -85,7 +85,7 @@ LIST
.param int enum
.local pmc gl_str
gl_str = get_hll_global ['gl_binding'], 'gl_str'
new $P0, 'Iterator', gl_str
$P0 = iter gl_str
L1:
unless $P0 goto L2
$S0 = shift $P0
Expand Down
2 changes: 1 addition & 1 deletion src/lib/lpeg.pir
Expand Up @@ -1059,7 +1059,7 @@ NOT YET IMPLEMENTED.

.sub 'get_string' :vtable :method
$S0 = "[]\n"
new $P0, 'Iterator', self
$P0 = iter self
$I0 = 0
new $P1, 'FixedIntegerArray'
set $P1, 1
Expand Down

0 comments on commit 705f084

Please sign in to comment.