mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
fix datatype mismatches
This commit is contained in:
parent
b0d86d87d8
commit
ac964fbe30
@ -84,7 +84,7 @@ ZEND_API int zend_atoi(const char *str, int str_len) /* {{{ */
|
||||
int retval;
|
||||
|
||||
if (!str_len) {
|
||||
str_len = strlen(str);
|
||||
str_len = (int)strlen(str);
|
||||
}
|
||||
retval = ZEND_STRTOL(str, NULL, 0);
|
||||
if (str_len>0) {
|
||||
@ -112,7 +112,7 @@ ZEND_API zend_long zend_atol(const char *str, int str_len) /* {{{ */
|
||||
zend_long retval;
|
||||
|
||||
if (!str_len) {
|
||||
str_len = strlen(str);
|
||||
str_len = (int)strlen(str);
|
||||
}
|
||||
retval = ZEND_STRTOL(str, NULL, 0);
|
||||
if (str_len>0) {
|
||||
|
Loading…
Reference in New Issue
Block a user