aboutsummaryrefslogtreecommitdiff
path: root/X11/extensions/syncconst.h
diff options
context:
space:
mode:
Diffstat (limited to 'X11/extensions/syncconst.h')
-rw-r--r--X11/extensions/syncconst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/X11/extensions/syncconst.h b/X11/extensions/syncconst.h
index 2ad5db7b9..926b60cb7 100644
--- a/X11/extensions/syncconst.h
+++ b/X11/extensions/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)