Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Patch to change bahavior of .unshift to return modified array, not nu…
…mber of elements

Signed-off-by: Moritz Lenz <mlenz@wvbh074.physik.uni-wuerzburg.de>
  • Loading branch information
Kevan Benson authored and Moritz Lenz committed Jul 7, 2009
1 parent 8a786f4 commit 40251e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Array.pir
Expand Up @@ -238,7 +238,7 @@ Adds C<args> to the beginning of the Array.
goto it_loop
it_loop_end:
splice self, args, 0, 0
.tailcall self.'elems'()
.return (self)
type_error:
'die'('Type check failure in push')
.end
Expand Down

0 comments on commit 40251e4

Please sign in to comment.