Skip to content

Commit

Permalink
[src/glue/enum.pir] two fixes
Browse files Browse the repository at this point in the history
- s/Perl6Pair/Pair/
- removed cloning step
  • Loading branch information
Carl Masak committed Feb 17, 2010
1 parent f592840 commit e23a053
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/glue/enum.pir
Expand Up @@ -30,7 +30,7 @@ Constructs a EnumMap, based upon the values list.
values_loop:
unless values_it goto values_loop_end
cur_item = shift values_it
$I0 = isa cur_item, 'Perl6Pair'
$I0 = isa cur_item, 'Pair'
if $I0 goto pair

nonpair:
Expand All @@ -42,7 +42,6 @@ Constructs a EnumMap, based upon the values list.
cur_val = cur_item.'value'()
$P0 = cur_item.'key'()
enumhash[$P0] = cur_val
cur_val = clone cur_val # XXX Don't know if this is needed
cur_val = cur_val.'succ'()
goto values_loop

Expand Down

0 comments on commit e23a053

Please sign in to comment.