In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/5ac3629776cb773f868455ce02860eafa022c003?hp=4a75fa1ae0acfb6204ce925df66ec1e7f85767ce>

- Log -----------------------------------------------------------------
commit 5ac3629776cb773f868455ce02860eafa022c003
Author: David Mitchell <[email protected]>
Date:   Sat Jun 5 13:44:04 2010 +0100

    silence some warnings in hv.c
    
    Since de0a224a057997a65d38856f1981702fca5d7c18, xhv_keys and xhv_max
    are the same type, so no casting needed
-----------------------------------------------------------------------

Summary of changes:
 hv.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/hv.c b/hv.c
index 6d6edb2..08ca8d0 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);
        }
     }

--
Perl5 Master Repository

Reply via email to