summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2018-01-29 15:15:58 +0100
committerDimitri Staessens <dimitri.staessens@ugent.be>2018-01-29 15:35:22 +0100
commit83f9bdda86ad6e9b2e0ec04e130cf1d32d79a7c6 (patch)
tree17c374433f9be4be10c3cb938693851d16ae4584 /src
parent98a306ff278884bfcbea41b059f2467226a9ced9 (diff)
downloadouroboros-0.9.6.tar.gz
ouroboros-0.9.6.zip
lib: Fix assertions in timerwheel0.9.6
The previous commit only fixed the issue for release builds. This fixes it for debug builds as well. Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be> Signed-off-by: Dimitri Staessens <dimitri.staessens@ugent.be>
Diffstat (limited to 'src')
-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);