Skip to content

Commit fef767d

Browse files
committed
ext/ldap: Use size_t type instead of int type
1 parent faf69f9 commit fef767d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

ext/ldap/ldap.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,15 +719,13 @@ static int php_ldap_control_from_array(LDAP *ld, LDAPControl** ctrl, const HashT
719719
zend_string_release(tmpstring);
720720
}
721721
if (tmpstrings1 != NULL) {
722-
int i;
723-
for (i = 0; i < num_tmpstrings1; ++i) {
722+
for (size_t i = 0; i < num_tmpstrings1; ++i) {
724723
zend_string_release(tmpstrings1[i]);
725724
}
726725
efree(tmpstrings1);
727726
}
728727
if (tmpstrings2 != NULL) {
729-
int i;
730-
for (i = 0; i < num_tmpstrings2; ++i) {
728+
for (size_t i = 0; i < num_tmpstrings2; ++i) {
731729
zend_string_release(tmpstrings2[i]);
732730
}
733731
efree(tmpstrings2);

0 commit comments

Comments
 (0)