This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
adjust $DB::deep from 100 to 1000
[perl5.git] / universal.c
index f583817..a72c072 100644 (file)
@@ -490,7 +490,7 @@ XS(XS_version_new)
 {
     dVAR;
     dXSARGS;
-    if (items > 3)
+    if (items > 3 || items < 1)
        croak_xs_usage(cv, "class, version");
     SP -= items;
     {