summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/zend_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 2e98f10c6a..8e9f5414dd 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -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];