Ticket #7113: 0001-Add-cast-to-placate-gcc-4.6-on-linux-powerpc-7113.patch

File 0001-Add-cast-to-placate-gcc-4.6-on-linux-powerpc-7113.patch, 808 bytes (added by erikd, 21 months ago)
  • rts/posix/Select.c

    From ec035c964ae52931241e10db84baddbdd83c5027 Mon Sep 17 00:00:00 2001
    From: Erik de Castro Lopo <erikd@mega-nerd.com>
    Date: Fri, 3 Aug 2012 15:14:35 +1000
    Subject: [PATCH 1/2] Add cast to placate gcc 4.6 on linux-powerpc (#7113).
    
    ---
     rts/posix/Select.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/rts/posix/Select.c b/rts/posix/Select.c
    index 99a9508..d638829 100644
    a b  
    4545 
    4646#if SIZEOF_VOID_P == 4 
    4747#define LowResTimeToTime(t)          (USToTime((t) * 1000)) 
    48 #define TimeToLowResTimeRoundDown(t) (TimeToUS(t) / 1000) 
     48#define TimeToLowResTimeRoundDown(t) ((LowResTime)(TimeToUS(t) / 1000)) 
    4949#define TimeToLowResTimeRoundUp(t)   ((TimeToUS(t) + 1000-1) / 1000) 
    5050#else 
    5151#define LowResTimeToTime(t) (t)