]> code.delx.au - pulseaudio/commitdiff
timeval: don't create the wrong illusion that nsecs should be stored in pa_usec_t
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Jun 2009 22:16:42 +0000 (00:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jun 2009 22:16:42 +0000 (00:16 +0200)
src/pulse/timeval.h

index 6307735c9cb553951013eddb31b4ef1644fde32c..48c6cdb36260e038703067ebe5aef919bc7b15e3 100644 (file)
@@ -40,16 +40,16 @@ PA_C_DECL_BEGIN
 #define PA_USEC_PER_SEC ((pa_usec_t) 1000000ULL)
 
 /** The number of nanoseconds in a second */
-#define PA_NSEC_PER_SEC ((pa_usec_t) 1000000000ULL)
+#define PA_NSEC_PER_SEC ((unsigned long long) 1000000000ULL)
 
 /** The number of microseconds in a millisecond */
 #define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL)
 
 /** The number of nanoseconds in a millisecond */
-#define PA_NSEC_PER_MSEC ((pa_usec_t) 1000000ULL)
+#define PA_NSEC_PER_MSEC ((unsigned long long) 1000000ULL)
 
 /** The number of nanoseconds in a microsecond */
-#define PA_NSEC_PER_USEC ((pa_usec_t) 1000ULL)
+#define PA_NSEC_PER_USEC ((unsigned long long) 1000ULL)
 
 /** Invalid time in usec */
 #define PA_USEC_INVALID ((pa_usec_t) -1)