]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Fix assertion failure on 5.37.10
authorVincent Pit <vpit@cpan.org>
Sun, 26 Mar 2023 15:24:28 +0000 (17:24 +0200)
committerVincent Pit <vpit@cpan.org>
Sun, 26 Mar 2023 15:24:28 +0000 (17:24 +0200)
Seems like PL_curpad[0] doesn't have an excessive refcount anymore.

Upper.xs

index 7d994fcdf5e83105e985ca71da13416ca6da1828..7be4f690842349265d4fc72e8262387257071a69 100644 (file)
--- a/Upper.xs
+++ b/Upper.xs
@@ -2034,9 +2034,11 @@ static int su_uplevel_runops_hook_entersub(pTHX) {
    AvFILLp(av) = fill;
   }
 
+#if !XSH_HAS_PERL(5, 37, 10)
   /* should be referenced by PL_curpad[0] and *_ */
   assert(SvREFCNT(PL_curpad[0]) > 1);
   SvREFCNT_dec(PL_curpad[0]);
+#endif
 
   PL_curpad[0] = (SV *) av;
  }