From: Hallvard Furuseth Date: Fri, 17 Oct 2008 23:24:48 +0000 (+0000) Subject: Warning cleanup: signed meets unsigned, remove assert(unsigned >= 0). X-Git-Tag: ACLCHECK_0~1231 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08852acb8063d505508d5989e2894482ed49d5bf;p=openldap Warning cleanup: signed meets unsigned, remove assert(unsigned >= 0). --- diff --git a/libraries/libldap/abandon.c b/libraries/libldap/abandon.c index bd9ebb3818..3983a8e123 100644 --- a/libraries/libldap/abandon.c +++ b/libraries/libldap/abandon.c @@ -412,7 +412,7 @@ ldap_int_bisect_insert( ber_int_t **vp, ber_len_t *np, int id, int idx ) assert( np != NULL ); assert( *np >= 0 ); assert( idx >= 0 ); - assert( idx <= *np ); + assert( (unsigned) idx <= *np ); n = *np; @@ -453,7 +453,7 @@ ldap_int_bisect_delete( ber_int_t **vp, ber_len_t *np, int id, int idx ) assert( np != NULL ); assert( *np >= 0 ); assert( idx >= 0 ); - assert( idx < *np ); + assert( (unsigned) idx < *np ); v = *vp; diff --git a/libraries/libldap/result.c b/libraries/libldap/result.c index 07c3f5be7c..fccee3d14c 100644 --- a/libraries/libldap/result.c +++ b/libraries/libldap/result.c @@ -1435,7 +1435,7 @@ ldap_mark_abandoned( LDAP *ld, ber_int_t msgid, int idx ) /* NOTE: those assertions are repeated in ldap_int_bisect_delete() */ assert( idx >= 0 ); - assert( idx < ld->ld_nabandoned ); + assert( (unsigned) idx < ld->ld_nabandoned ); assert( ld->ld_abandoned[ idx ] == msgid ); return ldap_int_bisect_delete( &ld->ld_abandoned, &ld->ld_nabandoned,