diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-19 09:11:16 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-06-19 09:11:16 +0200 |
commit | 40f27a2df4906d9ceb1c78f6163a62c497321535 (patch) | |
tree | 2260f169d90eb1129d795859a4895ac6690399ef /mi/mieq.c | |
parent | 2e7fef7d0837939e822c40b6ac77e7f0e66d57bd (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/mieq.c')
-rw-r--r-- | mi/mieq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) % |