mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
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:
parent
b8849f5c2f
commit
85d9abea8a
2 changed files with 7 additions and 7 deletions
|
|
@ -140,7 +140,7 @@ struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v) {
|
||||||
tv->tv_usec += (suseconds_t) v;
|
tv->tv_usec += (suseconds_t) v;
|
||||||
|
|
||||||
/* Normalize */
|
/* Normalize */
|
||||||
while (tv->tv_usec >= PA_USEC_PER_SEC) {
|
while ((unsigned) tv->tv_usec >= PA_USEC_PER_SEC) {
|
||||||
tv->tv_sec++;
|
tv->tv_sec++;
|
||||||
tv->tv_usec -= PA_USEC_PER_SEC;
|
tv->tv_usec -= PA_USEC_PER_SEC;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,12 +34,12 @@
|
||||||
|
|
||||||
PA_C_DECL_BEGIN
|
PA_C_DECL_BEGIN
|
||||||
|
|
||||||
#define PA_MSEC_PER_SEC 1000
|
#define PA_MSEC_PER_SEC ((pa_usec_t) 1000ULL)
|
||||||
#define PA_USEC_PER_SEC 1000000
|
#define PA_USEC_PER_SEC ((pa_usec_t) 1000000ULL)
|
||||||
#define PA_NSEC_PER_SEC 1000000000
|
#define PA_NSEC_PER_SEC ((pa_usec_t) 1000000000ULL)
|
||||||
#define PA_USEC_PER_MSEC 1000
|
#define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL)
|
||||||
#define PA_NSEC_PER_MSEC 1000000
|
#define PA_NSEC_PER_MSEC ((pa_usec_t) 1000000ULL)
|
||||||
#define PA_NSEC_PER_USEC 1000
|
#define PA_NSEC_PER_USEC ((pa_usec_t) 1000ULL)
|
||||||
|
|
||||||
struct timeval;
|
struct timeval;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue