diff --git a/src/switch_ivr_originate.c b/src/switch_ivr_originate.c index 0b06d6029c..4a3cbc64f1 100644 --- a/src/switch_ivr_originate.c +++ b/src/switch_ivr_originate.c @@ -320,7 +320,7 @@ static int check_per_channel_timeouts(originate_global_t *oglobals, delayed_min = oglobals->originate_status[i].per_channel_delay_start; } } - early_exit_time = delayed_min - (uint32_t) elapsed; + early_exit_time = delayed_min - (uint32_t)(intptr_t) elapsed; } for (i = 0; i < max; i++) { if (oglobals->originate_status[i].peer_channel && oglobals->originate_status[i].per_channel_delay_start &&