diff options
author | root <root> | 2007-12-09 02:27:44 +0000 |
---|---|---|
committer | root <root> | 2007-12-09 02:27:44 +0000 |
commit | 9d1c5bca0cd6582efd0537b4f2f90d9d54a8086d (patch) | |
tree | b67b7493c53f1c248f33ea08580d5bc0d1a8a06d /ev.c | |
parent | c92198a5c36ea9d1b1e0fae8254eb5609553bbf9 (diff) |
c99 etc.
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 15 |
1 files changed, 8 insertions, 7 deletions
@@ -1548,14 +1548,15 @@ ev_clear_pending (EV_P_ void *w) W w_ = (W)w; int pending = w_->pending; - if (!pending) + if (expect_true (pending)) + { + ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1; + w_->pending = 0; + p->w = 0; + return p->events; + } + else return 0; - - w_->pending = 0; - ANPENDING *p = pendings [ABSPRI (w_)] + pending - 1; - p->w = 0; - - return p->events; } void inline_size |