summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/timerwheel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/timerwheel.c b/src/lib/timerwheel.c
index 60fa9cda..ef8489bf 100644
--- a/src/lib/timerwheel.c
+++ b/src/lib/timerwheel.c
@@ -186,7 +186,7 @@ struct tw_f * timerwheel_start(struct timerwheel * tw,
f->func = func;
f->arg = arg;
- assert(delay < tw->elements * tw->resolution);
+ assert(delay < (time_t) tw->elements * tw->resolution);
pthread_mutex_lock(&tw->lock);
@@ -205,7 +205,7 @@ int timerwheel_restart(struct timerwheel * tw,
int pos;
assert(tw);
- assert(delay < tw->elements * tw->resolution);
+ assert(delay < (time_t) tw->elements * tw->resolution);
pthread_mutex_lock(&tw->lock);