mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-21 04:00:05 +01:00
long i;
for (i = 1; ; i <<= 1)
if (i == (1 << 31))
break;
(1 << 31) is compiled as an int, and thus is equal to -2147483648. We
are trying to compare it against a long, which on 64-bit machines is
2147483648. This results in an infinite loop.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile.am | ||
| protocol-common.c | ||
| protocol-common.h | ||
| protocol-eventconvert.c | ||
| protocol-xigetclientpointer.c | ||
| protocol-xigetselectedevents.c | ||
| protocol-xipassivegrabdevice.c | ||
| protocol-xiquerydevice.c | ||
| protocol-xiquerypointer.c | ||
| protocol-xiqueryversion.c | ||
| protocol-xiselectevents.c | ||
| protocol-xisetclientpointer.c | ||
| protocol-xiwarppointer.c | ||
| xi2.c | ||