1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add parentheses to avoid pointless condition

Pointed out by xtkoba (Tee KOBAYASHI).

Fixes [Bug #17946]
This commit is contained in:
Jeremy Evans 2021-06-15 10:11:00 -07:00 committed by Nobuyoshi Nakada
parent 557b4eb4aa
commit 7c31ecd3ac
Notes: git 2021-06-23 21:49:03 +09:00

View file

@ -2597,7 +2597,7 @@ set_pioinfo_extra(void)
for (pend += 10; pend < p + 300; pend++) {
// find end of function
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
for (pend -= (sizeof(PIOINFO_MARK) - 1); pend > p; pend--) {
if (memcmp(pend, PIOINFO_MARK, sizeof(PIOINFO_MARK) - 1) == 0) {