mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
fix warning
This commit is contained in:
parent
415000ed93
commit
29bf529d88
1 changed files with 1 additions and 1 deletions
|
@ -7422,7 +7422,7 @@ void zend_eval_const_expr(zend_ast **ast_ptr) /* {{{ */
|
|||
} else if (Z_TYPE_P(dim) != IS_STRING || is_numeric_string(Z_STRVAL_P(dim), Z_STRLEN_P(dim), &offset, NULL, 1) != IS_LONG) {
|
||||
return;
|
||||
}
|
||||
if (offset < 0 || offset >= Z_STRLEN_P(container)) {
|
||||
if (offset < 0 || (size_t)offset >= Z_STRLEN_P(container)) {
|
||||
return;
|
||||
}
|
||||
c = (zend_uchar) Z_STRVAL_P(container)[offset];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue