summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorMichel Dänzer <michel@tungstengraphics.com>2007-06-19 09:11:16 +0200
committerMichel Dänzer <michel@tungstengraphics.com>2007-06-19 09:11:16 +0200
commit40f27a2df4906d9ceb1c78f6163a62c497321535 (patch)
tree2260f169d90eb1129d795859a4895ac6690399ef /mi
parent2e7fef7d0837939e822c40b6ac77e7f0e66d57bd (diff)
mieqEnqueue: Make local queue tail variables unsigned.
So the modulo arithmetic actually works as intended... thanks to Peter Hutterer for pointing out the problem.
Diffstat (limited to 'mi')
-rw-r--r--mi/mieq.c2
1 files changed, 1 insertions, 1 deletions
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) %