Skip to content

Commit ac964fb

Browse files
committed
fix datatype mismatches
1 parent b0d86d8 commit ac964fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_operators.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ ZEND_API int zend_atoi(const char *str, int str_len) /* {{{ */
8484
int retval;
8585

8686
if (!str_len) {
87-
str_len = strlen(str);
87+
str_len = (int)strlen(str);
8888
}
8989
retval = ZEND_STRTOL(str, NULL, 0);
9090
if (str_len>0) {
@@ -112,7 +112,7 @@ ZEND_API zend_long zend_atol(const char *str, int str_len) /* {{{ */
112112
zend_long retval;
113113

114114
if (!str_len) {
115-
str_len = strlen(str);
115+
str_len = (int)strlen(str);
116116
}
117117
retval = ZEND_STRTOL(str, NULL, 0);
118118
if (str_len>0) {

0 commit comments

Comments
 (0)