mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 13:50:08 +01:00
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
1 changed files with 1 additions and 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) %
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue