From b499e38a35e04f73fa36eb817a489004f395f6b4 Mon Sep 17 00:00:00 2001 From: Marc Alexander Lehmann Date: Thu, 4 Jul 2019 23:59:36 +0000 Subject: [PATCH] *** empty log message *** --- ev_linuxaio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ev_linuxaio.c b/ev_linuxaio.c index fa26cd9..d7f4016 100644 --- a/ev_linuxaio.c +++ b/ev_linuxaio.c @@ -336,7 +336,7 @@ linuxaio_get_events_from_ring (EV_P) return 0; /* parse all available events, but only once, to avoid starvation */ - if (tail > head) /* normal case around */ + if (ecb_expect_true (tail > head)) /* normal case around */ linuxaio_parse_events (EV_A_ ring->io_events + head, tail - head); else /* wrapped around */ {