mieqEnqueue: Make local queue tail variables unsigned.
So the modulo arithmetic actually works as intended... thanks to Peter Hutterer for pointing out the problem.
This commit is contained in:
parent
2e7fef7d08
commit
40f27a2df4
|
@ -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) %
|
||||
|
|
Loading…
Reference in New Issue
Block a user