Add parentheses to avoid pointless condition
Pointed out by xtkoba (Tee KOBAYASHI). Fixes [Bug #17946]
This commit is contained in:
parent
557b4eb4aa
commit
7c31ecd3ac
Notes:
git
2021-06-23 21:49:03 +09:00
@ -2597,7 +2597,7 @@ set_pioinfo_extra(void)
|
|||||||
for (pend += 10; pend < p + 300; pend++) {
|
for (pend += 10; pend < p + 300; pend++) {
|
||||||
// find end of function
|
// find end of function
|
||||||
if (memcmp(pend, FUNCTION_BEFORE_RET_MARK, sizeof(FUNCTION_BEFORE_RET_MARK) - 1) == 0 &&
|
if (memcmp(pend, FUNCTION_BEFORE_RET_MARK, sizeof(FUNCTION_BEFORE_RET_MARK) - 1) == 0 &&
|
||||||
*(pend + (sizeof(FUNCTION_BEFORE_RET_MARK) - 1) + FUNCTION_SKIP_BYTES) & FUNCTION_RET == FUNCTION_RET) {
|
(*(pend + (sizeof(FUNCTION_BEFORE_RET_MARK) - 1) + FUNCTION_SKIP_BYTES) & FUNCTION_RET) == FUNCTION_RET) {
|
||||||
// search backwards from end of function
|
// search backwards from end of function
|
||||||
for (pend -= (sizeof(PIOINFO_MARK) - 1); pend > p; pend--) {
|
for (pend -= (sizeof(PIOINFO_MARK) - 1); pend > p; pend--) {
|
||||||
if (memcmp(pend, PIOINFO_MARK, sizeof(PIOINFO_MARK) - 1) == 0) {
|
if (memcmp(pend, PIOINFO_MARK, sizeof(PIOINFO_MARK) - 1) == 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user