summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-06-12 23:16:29 -0700
committerFather Chrysostomos <sprout@cpan.org>2011-06-12 23:17:37 -0700
commita2bf5ab1b8344732c3d83dcec1278b619c9daf6a (patch)
treef43e2dd9d706021472b2ada78fc4b33425982671 /ext
parentf593865081be3207047e726481e30d6c7f944a66 (diff)
downloadperl-a2bf5ab1b8344732c3d83dcec1278b619c9daf6a.tar.gz
Move an XS::APItest var decl to PREINIT
Hopefully this will get smoke reports to pass again on Windows.
Diffstat (limited to 'ext')
-rw-r--r--ext/XS-APItest/APItest.xs3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs
index cb5de2d871..21f417d25c 100644
--- a/ext/XS-APItest/APItest.xs
+++ b/ext/XS-APItest/APItest.xs
@@ -2794,8 +2794,9 @@ OUTPUT:
void
fill_hash_with_nulls(HV *hv)
-CODE:
+PREINIT:
UV i = 0;
+CODE:
for(; i < 1000; ++i) {
HE *entry = hv_fetch_ent(hv, sv_2mortal(newSVuv(i)), 1, 0);
SvREFCNT_dec(HeVAL(entry));