--- libev/ev.c 2008/05/22 03:42:34 1.251 +++ libev/ev.c 2008/05/22 03:43:32 1.252 @@ -1570,6 +1570,7 @@ { assert (pendingmax [i] >= pendingcnt [i]); #if EV_IDLE_ENABLE + assert (idleall >= 0); assert (idlemax [i] >= idlecnt [i]); array_verify (EV_A_ (W *)idles [i], idlecnt [i]); #endif