silence clang warning about always false, this is meant to keep naughty users for the api from causing a crash, the check is fine

This commit is contained in:
Michael Jerris 2014-03-15 22:42:05 -04:00
parent f43e3251f9
commit 658e7623a2

View File

@ -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) 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; return NULL;
} }
@ -465,7 +465,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_set_private_class(switch_cor
{ {
switch_assert(session != NULL); switch_assert(session != NULL);
if (index >= SWITCH_CORE_SESSION_MAX_PRIVATES) { if ((int)index >= SWITCH_CORE_SESSION_MAX_PRIVATES) {
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
} }