From bedd4c9c0c50984dcd07c82bcd9ca71b77815d0b Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Tue, 17 Aug 2021 18:10:46 +0900 Subject: [PATCH] mutex-posix: fix svace defects (SIGN_EXTENSION) [Version] 13.0-32 [Issue Type] Svace Change-Id: Ibb61bbf8d069f869a695b40fa3c7db29be44c68f --- packaging/pulseaudio.spec | 2 +- src/pulsecore/mutex-posix.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packaging/pulseaudio.spec b/packaging/pulseaudio.spec index b4467cc..d9bdb34 100644 --- a/packaging/pulseaudio.spec +++ b/packaging/pulseaudio.spec @@ -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 diff --git a/src/pulsecore/mutex-posix.c b/src/pulsecore/mutex-posix.c index 03e390a..019e4cc 100644 --- a/src/pulsecore/mutex-posix.c +++ b/src/pulsecore/mutex-posix.c @@ -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); } -- 2.7.4