diff options
author | root <root> | 2008-05-08 20:49:12 +0000 |
---|---|---|
committer | root <root> | 2008-05-08 20:49:12 +0000 |
commit | 5a0dab227582692d6b56d418320d8897eb80ab41 (patch) | |
tree | 3e7876ee758cec8712ebc3a1fd332ba0701049a8 /ev.c | |
parent | 7cab20ce227655a6e6fc21f39f43efc8ec5f7a98 (diff) |
*** empty log message ***
Diffstat (limited to 'ev.c')
-rw-r--r-- | ev.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -768,6 +768,7 @@ fd_rearm_all (EV_P) * the difference is about 5% with 50000+ watchers. */ #define USE_4HEAP !EV_MINIMAL +#define USE_4HEAP 1/* they do not work corretcly */ #if USE_4HEAP #define DHEAP 4 @@ -783,7 +784,7 @@ upheap (WT *heap, int k) { int p = ((k - HEAP0 - 1) / DHEAP) + HEAP0; - if (p >= HEAP0 || heap [p]->at <= w->at) + if (p == k || heap [p]->at <= w->at) break; heap [k] = heap [p]; |