]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
[Core] Coverity: 1500235 Use of 32-bit time_t
authorAndrey Volk <andywolk@gmail.com>
Sun, 1 Oct 2023 10:32:47 +0000 (13:32 +0300)
committerAndrey Volk <andywolk@gmail.com>
Sun, 1 Oct 2023 10:32:47 +0000 (13:32 +0300)
src/switch_core_media.c

index f5520d4efbac796e39cf74c3803633156a83b330..c0011ee68313b4c9573d9cd445405a82b2feb5a6 100644 (file)
@@ -10526,7 +10526,7 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
        }
 
        if (!smh->owner_id) {
-               smh->owner_id = (uint32_t) switch_epoch_time_now(NULL) - port;
+               smh->owner_id = (uint32_t)(intptr_t)switch_epoch_time_now(NULL) - port;
        }
 
        if (!smh->session_id) {