Add cast to placate gcc 4.6 on linux-powerpc (#7113).
authorErik de Castro Lopo <erikd@mega-nerd.com>
Fri, 3 Aug 2012 05:14:35 +0000 (15:14 +1000)
committerSimon Marlow <marlowsd@gmail.com>
Thu, 9 Aug 2012 08:08:58 +0000 (09:08 +0100)
rts/posix/Select.c

index 99a9508..d638829 100644 (file)
@@ -45,7 +45,7 @@
 
 #if SIZEOF_VOID_P == 4
 #define LowResTimeToTime(t)          (USToTime((t) * 1000))
-#define TimeToLowResTimeRoundDown(t) (TimeToUS(t) / 1000)
+#define TimeToLowResTimeRoundDown(t) ((LowResTime)(TimeToUS(t) / 1000))
 #define TimeToLowResTimeRoundUp(t)   ((TimeToUS(t) + 1000-1) / 1000)
 #else
 #define LowResTimeToTime(t) (t)