summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-01-29 15:37:59 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-01-29 15:37:59 +0100
commit9f3dc2901d780f5b833ecf5a6bd18aa4c1f95a00 (patch)
tree06dcd865097e3db45ae7726acb83d41bd0555f3d /src/lib
parent0e35ffe3743f5e79decfaed8cf7a14ff3c4f26fd (diff)
parent83f9bdda86ad6e9b2e0ec04e130cf1d32d79a7c6 (diff)
downloadouroboros-9f3dc2901d780f5b833ecf5a6bd18aa4c1f95a00.tar.gz
ouroboros-9f3dc2901d780f5b833ecf5a6bd18aa4c1f95a00.zip
Merge branch 'testing' into be
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);