From bc5067d94e3c13edb9a55b1319cf4ac54aed79fe Mon Sep 17 00:00:00 2001 From: Andrey Volk Date: Sun, 1 Oct 2023 13:34:07 +0300 Subject: [PATCH] [Core] Coverity: 1500244 Use of 32-bit time_t --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index c0011ee683..8a7f94f4fc 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -12050,7 +12050,7 @@ SWITCH_DECLARE(void) switch_core_media_patch_sdp(switch_core_session_t *session) family = strchr(smh->mparams->sipip, ':') ? "IP6" : "IP4"; if (!smh->owner_id) { - smh->owner_id = (uint32_t) switch_epoch_time_now(NULL) * 31821U + 13849U; + smh->owner_id = (uint32_t)(intptr_t)switch_epoch_time_now(NULL) * 31821U + 13849U; } if (!smh->session_id) {