From: Howard Chu Date: Sun, 31 Aug 2008 00:38:07 +0000 (+0000) Subject: ITS#5578 signed/unsigned comparison X-Git-Tag: ACLCHECK_0~1398 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfdb93f80b79df26b73940e4029bc44149f896c6;p=openldap ITS#5578 signed/unsigned comparison --- diff --git a/servers/slapd/attr.c b/servers/slapd/attr.c index 8204fa7be8..67c26911c2 100644 --- a/servers/slapd/attr.c +++ b/servers/slapd/attr.c @@ -404,7 +404,7 @@ attr_valadd( rc = LDAP_TYPE_OR_VALUE_EXISTS; return rc; } - for ( j = a->a_numvals; j >= slot; j-- ) { + for ( j = a->a_numvals; j >= (int)slot; j-- ) { a->a_vals[j+1] = a->a_vals[j]; if ( nvals ) a->a_nvals[j+1] = a->a_nvals[j];