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:
parent
83454e944b
commit
4c5db8e3bd
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ has_region (struct eis_device *eis_device,
|
|||
int width,
|
||||
int height)
|
||||
{
|
||||
int i = 0;
|
||||
size_t i = 0;
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue