summaryrefslogtreecommitdiffstats
path: root/src/pulse/timeval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse/timeval.c')
-rw-r--r--src/pulse/timeval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pulse/timeval.c b/src/pulse/timeval.c
index 180e0159..7a19638d 100644
--- a/src/pulse/timeval.c
+++ b/src/pulse/timeval.c
@@ -140,7 +140,7 @@ struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v) {
tv->tv_usec += (suseconds_t) v;
/* Normalize */
- while (tv->tv_usec >= PA_USEC_PER_SEC) {
+ while ((unsigned) tv->tv_usec >= PA_USEC_PER_SEC) {
tv->tv_sec++;
tv->tv_usec -= PA_USEC_PER_SEC;
}