diff --git a/events/equeue/equeue.c b/events/equeue/equeue.c index 173a35db81..54b29e89b1 100644 --- a/events/equeue/equeue.c +++ b/events/equeue/equeue.c @@ -37,7 +37,7 @@ static inline int equeue_clampdiff(unsigned a, unsigned b) { // Increment the unique id in an event, hiding the event from cancel static inline void equeue_incid(equeue_t *q, struct equeue_event *e) { e->id += 1; - if (0 == (e->id << q->npw2)) { + if ((e->id << q->npw2) == 0) { e->id = 1; } } @@ -469,7 +469,7 @@ void equeue_event_dtor(void *p, void (*dtor)(void *)) { } -// simple callbacks +// simple callbacks struct ecallback { void (*cb)(void*); void *data;