declare the explicit type for our PA_xSEC_PER_ySEC constants

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2448 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2008-05-17 09:07:07 +00:00
parent b8849f5c2f
commit 85d9abea8a
2 changed files with 7 additions and 7 deletions

View file

@ -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;
}