]> granicus.if.org Git - php/commitdiff
fix warning
authorAnatol Belski <ab@php.net>
Wed, 23 Sep 2015 20:19:05 +0000 (22:19 +0200)
committerAnatol Belski <ab@php.net>
Thu, 24 Sep 2015 14:33:53 +0000 (16:33 +0200)
Zend/zend_compile.c

index 2e98f10c6a45c446bc3caa4dc497a32349110328..8e9f5414ddbe709a87e9f34d83699ee7273387c8 100644 (file)
@@ -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];