Fix a stack operation
gfx [Sat, 5 Sep 2009 06:10:08 +0000 (15:10 +0900)]
xs/MethodConstructor.xs

index f5af4ad..5fa6eda 100644 (file)
@@ -54,6 +54,9 @@ XS(mop_xs_constructor)
         croak("Not enough arguments for %s()", GvNAME(CvGV(cv)));
     }
 
+    SP -= items;
+    PUTBACK;
+
     klass = ST(0);
 
     if(SvROK(klass)){