We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23afee9 commit 2e54965Copy full SHA for 2e54965
events/equeue/equeue.c
@@ -37,7 +37,7 @@ static inline int equeue_clampdiff(unsigned a, unsigned b) {
37
// Increment the unique id in an event, hiding the event from cancel
38
static inline void equeue_incid(equeue_t *q, struct equeue_event *e) {
39
e->id += 1;
40
- if (0 == (e->id << q->npw2)) {
+ if ((e->id << q->npw2) == 0) {
41
e->id = 1;
42
}
43
@@ -469,7 +469,7 @@ void equeue_event_dtor(void *p, void (*dtor)(void *)) {
469
470
471
472
-// simple callbacks
+// simple callbacks
473
struct ecallback {
474
void (*cb)(void*);
475
void *data;
0 commit comments