Fix incorrect usage of cassert.

This commit is contained in:
Qi Wang 2019-11-21 14:10:03 -08:00 committed by Qi Wang
parent 45836d7fd3
commit 1decf958d1
3 changed files with 3 additions and 4 deletions

View file

@ -189,8 +189,7 @@ thread_event_trigger(tsd_t *tsd, bool delay_event) {
thread_allocated_last_event_get(tsd);
/* Make sure that accumbytes cannot overflow uint64_t. */
cassert(THREAD_EVENT_MAX_INTERVAL <=
UINT64_MAX - SC_LARGE_MAXCLASS + 1);
assert(THREAD_EVENT_MAX_INTERVAL <= UINT64_MAX - SC_LARGE_MAXCLASS + 1);
thread_allocated_last_event_set(tsd, thread_allocated_after);
bool allow_event_trigger = !delay_event && tsd_nominal(tsd) &&