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:
parent
557b4eb4aa
commit
7c31ecd3ac
Notes:
git
2021-06-23 21:49:03 +09:00
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue