Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add support for Integer on ComplexMatrix2D set_pmc_keyed
  • Loading branch information
Whiteknight committed Nov 16, 2009
1 parent a4567f9 commit 56c374d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pmc/complexmatrix2d.pmc
Expand Up @@ -204,6 +204,10 @@ pmclass ComplexMatrix2D dynpmc auto_attrs provides matrix {
real = VTABLE_get_number(INTERP, value);
imag = 0.0;
break;
case enum_class_Integer:
real = (FLOATVAL)VTABLE_get_integer(INTERP, value);
imag = 0.0;
break;
default:
Parrot_ex_throw_from_c_args(INTERP, NULL, EXCEPTION_OUT_OF_BOUNDS,
"ComplexMatrix2d: cannot set unknown PMC type");
Expand Down

0 comments on commit 56c374d

Please sign in to comment.