summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduard Bagrov <ebagrov@linuxtesting.org>2009-08-21 18:48:19 +0200
committerJulien Cristau <jcristau@debian.org>2009-08-22 20:04:34 +0200
commit55a0bbdde9b27b8dbc6e75d41c51af3f92dea6e3 (patch)
tree0451089d134ed0bb02d33b5dcf7ea8ac77dea230
parent23ac4d5235862d51f0cfb080ad2118a9fb181673 (diff)
Fix XSyncValueSubtract typo
X.Org bug#23438 <http://bugs.freedesktop.org/show_bug.cgi?id=23438> Signed-off-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--syncconst.h2
1 files changed, 1 insertions, 1 deletions
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)