xserver: Branch 'master'

Michel Daenzer daenzer at kemper.freedesktop.org
Tue Jun 19 00:12:32 PDT 2007


 mi/mieq.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 40f27a2df4906d9ceb1c78f6163a62c497321535 (from 2e7fef7d0837939e822c40b6ac77e7f0e66d57bd)
Author: Michel Dänzer <michel at tungstengraphics.com>
Date:   Tue Jun 19 09:11:16 2007 +0200

    mieqEnqueue: Make local queue tail variables unsigned.
    
    So the modulo arithmetic actually works as intended... thanks to Peter Hutterer
    for pointing out the problem.

diff --git a/mi/mieq.c b/mi/mieq.c
index f64e540..20c4b62 100644
--- a/mi/mieq.c
+++ b/mi/mieq.c
@@ -105,7 +105,7 @@ mieqInit(void)
 void
 mieqEnqueue(DeviceIntPtr pDev, xEvent *e)
 {
-    HWEventQueueType       oldtail = miEventQueue.tail, newtail;
+    unsigned int           oldtail = miEventQueue.tail, newtail;
     int                    isMotion = 0;
     deviceValuator         *v = (deviceValuator *) e;
     EventPtr               laste = &miEventQueue.events[(oldtail - 1) %


More information about the xorg-commit mailing list