diff --git a/res/res_security_log.c b/res/res_security_log.c index 8611e3f592a40ae0d9726420489681c27f59eae9..bea460908781e517ed95302b99a35b437e1edd60 100644 --- a/res/res_security_log.c +++ b/res/res_security_log.c @@ -120,7 +120,7 @@ static void security_event_cb(const struct ast_event *event, void *data) /* Note that the event type is guaranteed to be valid here. */ event_type = ast_event_get_ie_uint(event, AST_EVENT_IE_SECURITY_EVENT); - ast_assert(event_type >= 0 && event_type < AST_SECURITY_EVENT_NUM_TYPES); + ast_assert((unsigned int)event_type >= 0 && event_type < AST_SECURITY_EVENT_NUM_TYPES); ast_str_set(&str, 0, "%s=\"%s\"", ast_event_get_ie_type_name(AST_EVENT_IE_SECURITY_EVENT),