1
0
Fork 0

backends/eis-client: Fix type of index

libei uses as index size_t. To avoid a potential endless loop due to
overflow, fix that type accordingly.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3273>
This commit is contained in:
Pascal Nowack 2023-09-12 13:23:50 +02:00
parent 83454e944b
commit 4c5db8e3bd

View file

@ -228,7 +228,7 @@ has_region (struct eis_device *eis_device,
int width,
int height)
{
int i = 0;
size_t i = 0;
while (TRUE)
{