Skip to content

Shadowing warning #16461

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Revert zend_operator
  • Loading branch information
Girgias committed Oct 17, 2024
commit 557fea181aa5884d05e57a4e62efcc4b992710a5
4 changes: 2 additions & 2 deletions Zend/zend_operators.c
Original file line number Diff line number Diff line change
Expand Up @@ -3668,8 +3668,8 @@ static zend_always_inline void zend_memnstr_ex_pre(unsigned int td[], const char
}

if (reverse) {
for (size_t i = needle_len; i > 0; i--) {
td[(unsigned char)needle[i-1]] = i;
for (int i = needle_len - 1; i >= 0; i--) {
td[(unsigned char)needle[i]] = i + 1;
}
} else {
for (size_t i = 0; i < needle_len; i++) {
Expand Down