From: Dana Jansens Date: Fri, 2 May 2008 15:01:38 +0000 (-0400) Subject: a 64-bit fix X-Git-Tag: mikabox-3.4.7.2~37^2~2^2 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=17c4a30a11f542cc45ef2792f31ca358324764c6;p=mikachu%2Fopenbox.git a 64-bit fix --- diff --git a/openbox/event.c b/openbox/event.c index 3abaa675..502beb27 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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