From 658e7623a25a90f92962b8c48aeb3a6c803f6f91 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sat, 15 Mar 2014 22:42:05 -0400 Subject: [PATCH] silence clang warning about always false, this is meant to keep naughty users for the api from causing a crash, the check is fine --- src/switch_core_session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core_session.c b/src/switch_core_session.c index 37b4bf7654..0790aa6069 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -452,7 +452,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_event_send(const char *uuid_ SWITCH_DECLARE(void *) switch_core_session_get_private_class(switch_core_session_t *session, switch_pvt_class_t index) { - if (index >= SWITCH_CORE_SESSION_MAX_PRIVATES) { + if ((int)index >= SWITCH_CORE_SESSION_MAX_PRIVATES) { return NULL; } @@ -465,7 +465,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_private_class(switch_cor { switch_assert(session != NULL); - if (index >= SWITCH_CORE_SESSION_MAX_PRIVATES) { + if ((int)index >= SWITCH_CORE_SESSION_MAX_PRIVATES) { return SWITCH_STATUS_FALSE; }