/* $OpenLDAP$ */
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
*
- * Copyright 1998-2008 The OpenLDAP Foundation.
+ * Copyright 1998-2010 The OpenLDAP Foundation.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
end,
rc = 0;
- assert( n >= 0 );
assert( id >= 0 );
begin = 0;
assert( vp != NULL );
assert( np != NULL );
- assert( *np >= 0 );
assert( idx >= 0 );
- assert( idx <= *np );
+ assert( (unsigned) idx <= *np );
n = *np;
ldap_int_bisect_delete( ber_int_t **vp, ber_len_t *np, int id, int idx )
{
ber_int_t *v;
- ber_len_t n;
- int i;
+ ber_len_t i, n;
assert( vp != NULL );
assert( np != NULL );
- assert( *np >= 0 );
assert( idx >= 0 );
- assert( idx < *np );
+ assert( (unsigned) idx < *np );
v = *vp;