summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2010-12-01 10:32:34 -0500
committerFather Chrysostomos <sprout@cpan.org>2010-12-01 08:24:28 -0800
commit2e709962b9fd16ea18c9b31b128cde0247b7ceb7 (patch)
tree81dd37d43338c7393663343de3e0571fcca59fb4 /hv.c
parent4c916935c1a92a1e788b3be03e59191658b33154 (diff)
downloadperl-2e709962b9fd16ea18c9b31b128cde0247b7ceb7.tar.gz
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
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hv.c b/hv.c
index d0f452e6f9..d5e7a213f8 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;