Fixed integer limit warning
authoretisserant
Mon, 03 Dec 2007 13:09:19 +0100
changeset 321 994457edada8
parent 320 f82e758840bd
child 322 78615d6a8ddd
Fixed integer limit warning
include/timers_unix/timerscfg.h
--- a/include/timers_unix/timerscfg.h	Mon Dec 03 11:30:38 2007 +0100
+++ b/include/timers_unix/timerscfg.h	Mon Dec 03 13:09:19 2007 +0100
@@ -29,7 +29,7 @@
 /* Time resolution : 64bit (~584942 years) */
 #define TIMEVAL unsigned long long
 #define TIMEVAL_MAX ~(TIMEVAL)0
-#define MS_TO_TIMEVAL(ms) ms*1000
+#define MS_TO_TIMEVAL(ms) ms*1000L
 #define US_TO_TIMEVAL(us) us
 
 #define TASK_HANDLE pthread_t