time: make sure USEC is same type as usec_t
authorMarko Kreen <markokr@gmail.com>
Thu, 30 Sep 2010 05:04:36 +0000 (22:04 -0700)
committerMarko Kreen <markokr@gmail.com>
Thu, 30 Sep 2010 05:04:36 +0000 (22:04 -0700)
usual/time.h

index 46ef86f11a6ab1728f540c0e6f0eb908c2cf1c50..6a8f28e24165acdb553ebe80afdbcd0de8d0acf6 100644 (file)
@@ -33,7 +33,7 @@
 typedef uint64_t usec_t;
 
 /** How many microseconds in a second. */
-#define USEC 1000000ULL
+#define USEC ((usec_t)1000000)
 
 /** Convert usec timestamp to ISO timestamp with millisecond precision: YYYY-mm-dd hh:mm:ss.SSS */
 char *format_time_ms(usec_t time, char *dst, unsigned dstlen);