From 2e709962b9fd16ea18c9b31b128cde0247b7ceb7 Mon Sep 17 00:00:00 2001 From: "Jerry D. Hedden" Date: Wed, 1 Dec 2010 10:32:34 -0500 Subject: [PATCH] Fix compiler warning in hv.c on MSWin32 Fixes the following seen in a Steve Hay smoke test: Compiler messages(MSWin32): ..\hv.c(1646) : warning C4244: 'initializing' : conversion from 'unsigned long ' to 'const char ', possible loss of data --- hv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hv.c b/hv.c index d0f452e..d5e7a21 100644 --- a/hv.c +++ b/hv.c @@ -1643,7 +1643,7 @@ S_hfreeentries(pTHX_ HV *hv) /* This is the array that we're going to restore */ HE **const orig_array = HvARRAY(hv); HE **tmp_array = NULL; - const bool has_aux = SvOOK(hv); + const bool has_aux = (SvOOK(hv) == SVf_OOK); struct xpvhv_aux * current_aux = NULL; int attempts = 100; -- 2.7.4