From 08852acb8063d505508d5989e2894482ed49d5bf Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 17 Oct 2008 23:24:48 +0000 Subject: [PATCH] Warning cleanup: signed meets unsigned, remove assert(unsigned >= 0). --- libraries/libldap/abandon.c | 4 ++-- libraries/libldap/result.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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, -- 2.39.5