diff options
| author | Ben Fuhrmannek | 2021-09-02 13:58:01 +0200 |
|---|---|---|
| committer | Ben Fuhrmannek | 2021-09-02 13:58:01 +0200 |
| commit | b4dcbe2dd11efda09adc934fa2563eafc12e9b55 (patch) | |
| tree | d4b18b69f24c43a91ffee55caa8f6fbcef240687 /src/sp_config_scanner.cached.c | |
| parent | 782336d8f4b9c411d344c0e7752e87631952f268 (diff) | |
fixed compiler warnings + test cases
Diffstat (limited to 'src/sp_config_scanner.cached.c')
| -rw-r--r-- | src/sp_config_scanner.cached.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sp_config_scanner.cached.c b/src/sp_config_scanner.cached.c index 26a6652..868d271 100644 --- a/src/sp_config_scanner.cached.c +++ b/src/sp_config_scanner.cached.c | |||
| @@ -154,7 +154,7 @@ const char *yyt4; | |||
| 154 | zend_hash_str_add_ptr(&vars, ZEND_STRL("PHP_VERSION_ID"), zend_string_init(ZEND_STRL(ZEND_TOSTR(PHP_VERSION_ID)), 1)); | 154 | zend_hash_str_add_ptr(&vars, ZEND_STRL("PHP_VERSION_ID"), zend_string_init(ZEND_STRL(ZEND_TOSTR(PHP_VERSION_ID)), 1)); |
| 155 | 155 | ||
| 156 | 156 | ||
| 157 | int cond_res[100] = {0}; | 157 | int cond_res[100] = {1}; |
| 158 | int cond_res_i = 0; | 158 | int cond_res_i = 0; |
| 159 | char cond_op[100] = {0}; | 159 | char cond_op[100] = {0}; |
| 160 | int cond_op_i = 0; | 160 | int cond_op_i = 0; |
| @@ -883,7 +883,7 @@ yy111: | |||
| 883 | if (cond_op_i == 0 || sy_op_peek() != '(') { | 883 | if (cond_op_i == 0 || sy_op_peek() != '(') { |
| 884 | cs_error_log("unbalanced parathesis on line %d", lineno); goto out; | 884 | cs_error_log("unbalanced parathesis on line %d", lineno); goto out; |
| 885 | } | 885 | } |
| 886 | sy_op_pop(); | 886 | cond_op_i--; |
| 887 | goto yyc_cond_op; | 887 | goto yyc_cond_op; |
| 888 | } | 888 | } |
| 889 | yy113: | 889 | yy113: |
| @@ -910,12 +910,12 @@ yy116: | |||
| 910 | case '>': op1 = 'G'; break; // >= | 910 | case '>': op1 = 'G'; break; // >= |
| 911 | } | 911 | } |
| 912 | } | 912 | } |
| 913 | while (cond_op_i && sy_op_peek() != '(' && ((sy_op_precedence(sy_op_peek()) > sy_op_precedence(*t1)) || (sy_op_precedence(sy_op_peek()) == sy_op_precedence(*t1)) && sy_op_is_left_assoc(*t1))) { | 913 | while (cond_op_i && sy_op_peek() != '(' && ((sy_op_precedence(sy_op_peek()) > sy_op_precedence(*t1)) || (sy_op_precedence(sy_op_peek()) == sy_op_precedence(*t1) && sy_op_is_left_assoc(*t1)))) { |
| 914 | SY_APPLY_OP_FROM_STACK(); | 914 | SY_APPLY_OP_FROM_STACK(); |
| 915 | } | ||
| 916 | sy_op_push(*t1); | ||
| 917 | goto yyc_cond; | ||
| 918 | } | 915 | } |
| 916 | sy_op_push(*t1); | ||
| 917 | goto yyc_cond; | ||
| 918 | } | ||
| 919 | yy117: | 919 | yy117: |
| 920 | yych = *++YYCURSOR; | 920 | yych = *++YYCURSOR; |
| 921 | if (yych == '=') goto yy119; | 921 | if (yych == '=') goto yy119; |
