Skip to content
Browse files

fix a problem with the intialize_from_array method, I changed the met…

…hod signature a while back
  • Loading branch information...
1 parent 1fa3691 commit 659e749cd97727a326c802ab8b947025be977993 @Whiteknight committed May 23, 2010
Showing with 4 additions and 3 deletions.
  1. +3 −2 src/builtins/parrot_method.pir
  2. +1 −1 t/parrot/parrot_method.t
View
5 src/builtins/parrot_method.pir
@@ -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
View
2 t/parrot/parrot_method.t
@@ -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.
Something went wrong with that request. Please try again.