From 47760e2d759a1515355da2ec14ee294169f9cddc Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 2 Aug 2014 19:41:44 -0700 Subject: [PATCH] Silence a warning in clang-3.5 dealing with implicit conversion from 64bit to 32bit in a function call to switch_ivr_sleep() --- src/switch_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_channel.c b/src/switch_channel.c index ccc43aefef..d983110791 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -3732,7 +3732,7 @@ SWITCH_DECLARE(switch_status_t) switch_channel_perform_answer(switch_channel_t * const char *delay; if ((delay = switch_channel_get_variable(channel, "answer_delay"))) { - long msec = atol(delay); + uint32_t msec = atoi(delay); if (msec) { switch_ivr_sleep(channel->session, msec, SWITCH_TRUE, NULL);