From: Vincent Pit Date: Fri, 15 May 2009 22:38:07 +0000 (+0200) Subject: 5.9.5 fix X-Git-Tag: v0.13~9 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=a52a1238a67d43a290a7ed147254c7330ce4b96e;p=perl%2Fmodules%2Findirect.git 5.9.5 fix --- diff --git a/indirect.xs b/indirect.xs index b9314ae..4f1deb4 100644 --- a/indirect.xs +++ b/indirect.xs @@ -256,7 +256,7 @@ STATIC U32 indirect_hash = 0; STATIC SV *indirect_hint(pTHX) { #define indirect_hint() indirect_hint(aTHX) SV *id; -#if I_HAS_PERL(5, 10, 0) +#if I_HAS_PERL(5, 9, 5) id = Perl_refcounted_he_fetch(aTHX_ PL_curcop->cop_hints_hash, NULL, __PACKAGE__, __PACKAGE_LEN__, diff --git a/t/30-scope.t b/t/30-scope.t index f769de6..e9ab480 100644 --- a/t/30-scope.t +++ b/t/30-scope.t @@ -59,7 +59,7 @@ sub expect { no indirect; eval 'my $x = new Bar'; } - if ($] < 5.010) { + if ($] < 5.009005) { is($w, '', "eval 'no indirect; my \$x = new Bar'"); } else { like($w, expect('Bar'), "no indirect; eval 'my \$x = new Bar'");