diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 20:12:29 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2016-06-21 20:12:29 +0300 |
| commit | 1433162083142d9ba97b085209e387b79f9fd6ab (patch) | |
| tree | 07368efb983304f49ab8e7be5b450ae570ff473e /ext/opcache/Optimizer/zend_inference.c | |
| parent | ccf4ae95bd4801b5599936524b5466e6762c783d (diff) | |
| download | php-git-1433162083142d9ba97b085209e387b79f9fd6ab.tar.gz | |
Fixed compilation warnings
Diffstat (limited to 'ext/opcache/Optimizer/zend_inference.c')
| -rw-r--r-- | ext/opcache/Optimizer/zend_inference.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ext/opcache/Optimizer/zend_inference.c b/ext/opcache/Optimizer/zend_inference.c index ee14e49b5c..1e6e50b3ef 100644 --- a/ext/opcache/Optimizer/zend_inference.c +++ b/ext/opcache/Optimizer/zend_inference.c @@ -85,7 +85,7 @@ if (ssa->ops[line-1].result_def >= 0) { \ MACRO(ssa->ops[line-1].result_def); \ } \ - } else if (line+1 < op_array->last && \ + } else if ((uint32_t)line+1 < op_array->last && \ op_array->opcodes[line+1].opcode == ZEND_OP_DATA) { \ if (ssa->ops[line+1].op1_def >= 0) { \ MACRO(ssa->ops[line+1].op1_def); \ @@ -3437,8 +3437,7 @@ int zend_infer_types_ex(const zend_op_array *op_array, const zend_script *script zend_ssa_var *ssa_vars = ssa->vars; zend_ssa_var_info *ssa_var_info = ssa->var_info; int ssa_vars_count = ssa->vars_count; - uint i; - int j; + int i, j; uint32_t tmp; while (!zend_bitset_empty(worklist, zend_bitset_len(ssa_vars_count))) { @@ -3674,8 +3673,7 @@ static int zend_type_narrowing(const zend_op_array *op_array, const zend_script ALLOCA_FLAG(use_heap); zend_bitset visited = ZEND_BITSET_ALLOCA(2 * bitset_len, use_heap); zend_bitset worklist = visited + bitset_len; - int i; - uint32_t v; + int i, v; zend_op *opline; zend_bool narrowed = 0; |
