From: root Date: Tue, 11 Dec 2007 04:08:54 +0000 (+0000) Subject: the assert triggered, no explanation forthcoming, this might help X-Git-Tag: rel-1_8~4 X-Git-Url: https://git.llucax.com/software/libev.git/commitdiff_plain/1e5704b50a7d4be558050116622685a63b78ce5a?ds=sidebyside the assert triggered, no explanation forthcoming, this might help --- diff --git a/ev.c b/ev.c index 654821b..7c278f3 100644 --- a/ev.c +++ b/ev.c @@ -1239,7 +1239,7 @@ periodics_reify (EV_P) } else if (w->interval) { - ((WT)w)->at = w->offset + floor ((ev_rt_now - w->offset) / w->interval + 1.) * w->interval; + ((WT)w)->at = w->offset + (floor ((ev_rt_now - w->offset) / w->interval) + 1.) * w->interval; assert (("ev_periodic timeout in the past detected while processing timers, negative interval?", ((WT)w)->at > ev_rt_now)); downheap ((WT *)periodics, periodiccnt, 0); }