a 64-bit fix
authorDana Jansens <danakj@orodu.net>
Fri, 2 May 2008 15:01:38 +0000 (11:01 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 2 May 2008 17:44:16 +0000 (13:44 -0400)
openbox/event.c

index 3abaa675e1428fe54a1e0c64882aea1f2a3680e7..502beb278c3fe1347f58568f3f675ebb9ba2930e 100644 (file)
@@ -2013,7 +2013,7 @@ gboolean event_time_after(Time t1, Time t2)
     */
 
     /* TIME_HALF is half of the number space of a Time type variable */
-#define TIME_HALF (Time)(1 << (sizeof(Time)*8-1))
+#define TIME_HALF (Time)((Time)1 << (sizeof(Time)*8-1))
 
     if (t2 >= TIME_HALF)
         /* t2 is in the second half so t1 might wrap around and be smaller than