From 55a0bbdde9b27b8dbc6e75d41c51af3f92dea6e3 Mon Sep 17 00:00:00 2001 From: Eduard Bagrov Date: Fri, 21 Aug 2009 18:48:19 +0200 Subject: Fix XSyncValueSubtract typo X.Org bug#23438 Signed-off-by: Julien Cristau --- syncconst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syncconst.h') diff --git a/syncconst.h b/syncconst.h index 2ad5db7..926b60c 100644 --- a/syncconst.h +++ b/syncconst.h @@ -113,7 +113,7 @@ PERFORMANCE OF THIS SOFTWARE. Bool signb = XSyncValueIsNegative(b);\ ((presult)->lo = (a).lo - (b).lo);\ ((presult)->hi = (a).hi - (b).hi);\ - if (t>(presult)->lo) (presult)->hi--;\ + if (t<(presult)->lo) (presult)->hi--;\ *poverflow = ((signa == signb) && !(signa == XSyncValueIsNegative(*presult)));\ } #define _XSyncMaxValue(pv) ((pv)->hi = 0x7fffffff, (pv)->lo = 0xffffffff) -- cgit v1.2.1