summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ev.c b/ev.c
index 634c079..e05b54f 100644
--- a/ev.c
+++ b/ev.c
@@ -327,6 +327,7 @@ typedef ev_watcher *W;
typedef ev_watcher_list *WL;
typedef ev_watcher_time *WT;
+#define ev_active(w) ((W)(w))->active
#define ev_at(w) ((WT)(w))->at
#if EV_USE_MONOTONIC
@@ -1940,7 +1941,7 @@ ev_timer_again (EV_P_ ev_timer *w)
}
else if (w->repeat)
{
- w->at = w->repeat;
+ ev_at (w) = w->repeat;
ev_timer_start (EV_A_ w);
}
}