summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@pobox.com>2011-08-23 16:51:28 -0700
committerChip Salzenberg <chip@pobox.com>2011-08-23 16:51:28 -0700
commite4787c0c2a0ba73363e536994429000307f03526 (patch)
tree65f723912e114d9619b40cfc38e675711613686a /hv.c
parente59953eb69409565f494ecd850cd487996d84637 (diff)
downloadperl-e4787c0c2a0ba73363e536994429000307f03526.tar.gz
SVTYPEMASK must be cast to (svtype) when comparing to SvTYPE()
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 d6ecfb4a1d..ccd72fdfe9 100644
--- a/hv.c
+++ b/hv.c
@@ -340,7 +340,7 @@ Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
if (!hv)
return NULL;
- if (SvTYPE(hv) == SVTYPEMASK)
+ if (SvTYPE(hv) == (svtype)SVTYPEMASK)
return NULL;
assert(SvTYPE(hv) == SVt_PVHV);