From a2bf5ab1b8344732c3d83dcec1278b619c9daf6a Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Sun, 12 Jun 2011 23:16:29 -0700 Subject: [PATCH] Move an XS::APItest var decl to PREINIT Hopefully this will get smoke reports to pass again on Windows. --- ext/XS-APItest/APItest.xs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/XS-APItest/APItest.xs b/ext/XS-APItest/APItest.xs index cb5de2d..21f417d 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)); -- 2.7.4