Skip to content

Commit

Permalink
fix a problem with the intialize_from_array method, I changed the met…
Browse files Browse the repository at this point in the history
…hod signature a while back
  • Loading branch information
Whiteknight committed May 23, 2010
1 parent 1fa3691 commit 659e749
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/builtins/parrot_method.pir
Expand Up @@ -20,7 +20,8 @@
$P1 = new ['PMCMatrix2D']
($P0 :slurpy) = obj.$S0(args :flat)
if null $P0 goto just_return
$P1.'initialize_from_array'($P0)
$I0 = elements $P0
$P1.'initialize_from_array'(1, $I0, $P0)
just_return:
.return($P1)
.end
.end
2 changes: 1 addition & 1 deletion t/parrot/parrot_method.t
Expand Up @@ -5,4 +5,4 @@ is(columns(x), 1);
is(rows(x), 1);
parrot_method(x, "resize", 2, 7);
is(columns(x), 7);
is(rows(x), 2);
is(rows(x), 2);

0 comments on commit 659e749

Please sign in to comment.