From 40f27a2df4906d9ceb1c78f6163a62c497321535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 19 Jun 2007 09:11:16 +0200 Subject: [PATCH] mieqEnqueue: Make local queue tail variables unsigned. So the modulo arithmetic actually works as intended... thanks to Peter Hutterer for pointing out the problem. --- mi/mieq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mi/mieq.c b/mi/mieq.c index f64e5404d..20c4b6201 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) %