]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Explicit specify order of binary operations 3332/head
authorChristian Göttsche <cgzones@googlemail.com>
Mon, 6 Apr 2020 14:27:45 +0000 (16:27 +0200)
committerChristian Göttsche <cgzones@googlemail.com>
Sat, 11 Apr 2020 12:16:30 +0000 (14:16 +0200)
../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);
      |                        ~~~~~~~~~~^~~~~~~~~~~~~

contrib/libev/ev.c

index 3aab45006e8dfa5e84ef4943e62af6c6231a23a2..e569a010c4088f1678717c4efbe1cc970690bca3 100644 (file)
@@ -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;