summaryrefslogtreecommitdiff
path: root/hv.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2010-06-05 13:44:04 +0100
committerDavid Mitchell <davem@iabyn.com>2010-06-05 13:44:04 +0100
commit5ac3629776cb773f868455ce02860eafa022c003 (patch)
tree74fa3fc1b053d891fd21d21f4438189332ca2515 /hv.c
parent4a75fa1ae0acfb6204ce925df66ec1e7f85767ce (diff)
downloadperl-5ac3629776cb773f868455ce02860eafa022c003.tar.gz
silence some warnings in hv.c
Since de0a224a057997a65d38856f1981702fca5d7c18, xhv_keys and xhv_max are the same type, so no casting needed
Diffstat (limited to 'hv.c')
-rw-r--r--hv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hv.c b/hv.c
index 6d6edb2ae3..08ca8d058e 100644
--- a/hv.c
+++ b/hv.c
@@ -817,7 +817,7 @@ Perl_hv_common(pTHX_ HV *hv, SV *keysv, const char *key, STRLEN klen,
xhv->xhv_keys++; /* HvTOTALKEYS(hv)++ */
if (!counter) { /* initial entry? */
- } else if (xhv->xhv_keys > (IV)xhv->xhv_max) {
+ } else if (xhv->xhv_keys > xhv->xhv_max) {
hsplit(hv);
} else if(!HvREHASH(hv)) {
U32 n_links = 1;
@@ -2561,7 +2561,7 @@ S_share_hek_flags(pTHX_ const char *str, I32 len, register U32 hash, int flags)
xhv->xhv_keys++; /* HvTOTALKEYS(hv)++ */
if (!next) { /* initial entry? */
- } else if (xhv->xhv_keys > (IV)xhv->xhv_max /* HvKEYS(hv) > HvMAX(hv) */) {
+ } else if (xhv->xhv_keys > xhv->xhv_max /* HvKEYS(hv) > HvMAX(hv) */) {
hsplit(PL_strtab);
}
}