소스 검색

[Minor] Explicit specify order of binary operations

../contrib/libev/ev.c: In function ‘ev_io_start’:
../contrib/libev/ev.c:4396:34: warning: suggest parentheses around arithmetic in operand of ‘|’ [-Wparentheses]
 4396 |   fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
      |                        ~~~~~~~~~~^~~~~~~~~~~~~
tags/2.6
Christian Göttsche 4 년 전
부모
커밋
b29b85055e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      contrib/libev/ev.c

+ 1
- 1
contrib/libev/ev.c 파일 보기

@@ -4388,7 +4388,7 @@ ev_io_start (EV_P_ ev_io *w) EV_NOEXCEPT
/* common bug, apparently */
assert (("libev: ev_io_start called with corrupted watcher", ((WL)w)->next != (WL)w));

fd_change (EV_A_ fd, w->events & EV__IOFDSET | EV_ANFD_REIFY);
fd_change (EV_A_ fd, (w->events & EV__IOFDSET) | EV_ANFD_REIFY);
w->events &= ~EV__IOFDSET;

EV_FREQUENT_CHECK;

Loading…
취소
저장