diff options
author | Sander Vrijders <[email protected]> | 2018-01-29 15:15:58 +0100 |
---|---|---|
committer | Dimitri Staessens <[email protected]> | 2018-01-29 15:35:22 +0100 |
commit | 83f9bdda86ad6e9b2e0ec04e130cf1d32d79a7c6 (patch) | |
tree | 17c374433f9be4be10c3cb938693851d16ae4584 | |
parent | 98a306ff278884bfcbea41b059f2467226a9ced9 (diff) | |
download | ouroboros-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 <[email protected]>
Signed-off-by: Dimitri Staessens <[email protected]>
-rw-r--r-- | src/lib/timerwheel.c | 4 |
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); |