mirror of https://github.com/ARMmbed/mbed-os.git
Flip order of comparison
parent
712b47f3c1
commit
210f50d5c6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue