mutex-posix: fix svace defects (SIGN_EXTENSION) 56/262656/1 accepted/tizen/unified/20210819.123206 submit/tizen/20210818.030716
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 17 Aug 2021 09:10:46 +0000 (18:10 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 17 Aug 2021 09:10:46 +0000 (18:10 +0900)
[Version] 13.0-32
[Issue Type] Svace

Change-Id: Ibb61bbf8d069f869a695b40fa3c7db29be44c68f

packaging/pulseaudio.spec
src/pulsecore/mutex-posix.c

index b4467cc..d9bdb34 100644 (file)
@@ -3,7 +3,7 @@
 Name:             pulseaudio
 Summary:          Improved Linux sound server
 Version:          13.0
-Release:          31
+Release:          32
 Group:            Multimedia/Audio
 License:          LGPL-2.1
 URL:              http://pulseaudio.org
index 03e390a..019e4cc 100644 (file)
@@ -199,13 +199,13 @@ int pa_cond_timedwait(pa_cond *c, pa_mutex *m, int ms_to_wait) {
 
     gettimeofday(&now, NULL);
 
-    wait.tv_sec = ms_to_wait / 1000UL;
-    wait.tv_usec = (ms_to_wait % 1000UL) * 1000UL;
+    wait.tv_sec = ms_to_wait / 1000L;
+    wait.tv_usec = (ms_to_wait % 1000L) * 1000L;
 
     timeradd(&now, &wait, &wait_until);
 
     wait_until_ts.tv_sec = wait_until.tv_sec;
-    wait_until_ts.tv_nsec = wait_until.tv_usec * 1000UL;
+    wait_until_ts.tv_nsec = wait_until.tv_usec * 1000L;
 
     return pthread_cond_timedwait(&c->cond, &m->mutex, &wait_until_ts);
 }