]> git.sur5r.net Git - openldap/commitdiff
ITS#5578 signed/unsigned comparison
authorHoward Chu <hyc@openldap.org>
Sun, 31 Aug 2008 00:38:07 +0000 (00:38 +0000)
committerHoward Chu <hyc@openldap.org>
Sun, 31 Aug 2008 00:38:07 +0000 (00:38 +0000)
servers/slapd/attr.c

index 8204fa7be860406b9f16cc9505a7dff3506b9eb1..67c26911c2ef8dc1755fc566568dcf0825319386 100644 (file)
@@ -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];