From 56c374d78db606a05f80f8b8e8c43eade9358fd2 Mon Sep 17 00:00:00 2001 From: Whiteknight Date: Sun, 15 Nov 2009 19:03:31 -0500 Subject: [PATCH] add support for Integer on ComplexMatrix2D set_pmc_keyed --- src/pmc/complexmatrix2d.pmc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pmc/complexmatrix2d.pmc b/src/pmc/complexmatrix2d.pmc index 940e93f..639022b 100644 --- a/src/pmc/complexmatrix2d.pmc +++ b/src/pmc/complexmatrix2d.pmc @@ -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");