Skip to content

Commit

Permalink
Patch to change bahavior of .push to return modified array, not numbe…
Browse files Browse the repository at this point in the history
…r 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 e249a62 commit 8a786f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/Array.pir
Expand Up @@ -175,7 +175,7 @@ Add C<args> to the end of the Array.
it_loop_end:
$I0 = elements self
splice self, args, $I0, 0
.tailcall self.'elems'()
.return (self)
type_error:
'die'('Type check failure in push')
.end
Expand Down

0 comments on commit 8a786f4

Please sign in to comment.