]> git.llucax.com Git - software/libev.git/commitdiff
the assert triggered, no explanation forthcoming, this might help
authorroot <root>
Tue, 11 Dec 2007 04:08:54 +0000 (04:08 +0000)
committerroot <root>
Tue, 11 Dec 2007 04:08:54 +0000 (04:08 +0000)
ev.c

diff --git a/ev.c b/ev.c
index 654821b2534ecf0ff2955ff002e23a80b32b7856..7c278f36c5c32256fd3be7a17d79f4190d91dc9a 100644 (file)
--- 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);
         }