From 17c4a30a11f542cc45ef2792f31ca358324764c6 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 2 May 2008 11:01:38 -0400 Subject: [PATCH] a 64-bit fix --- openbox/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1