summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2022-07-26 20:42:15 +0200
committermouse <[email protected]>2022-08-15 13:07:57 +0800
commit06abb0c3dd4183f19cdea66d4199fa79e40a5668 (patch)
treebf68899130204109deb6960d802a0c9a41b50b48
parenteba064d0db0cb3ea79d5f0a487ee5defcf514a8a (diff)
downloadmate-desktop-06abb0c3dd4183f19cdea66d4199fa79e40a5668.tar.bz2
mate-desktop-06abb0c3dd4183f19cdea66d4199fa79e40a5668.tar.xz
mate-rr: fix -Wsign-compare warning
-rw-r--r--libmate-desktop/mate-rr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libmate-desktop/mate-rr.c b/libmate-desktop/mate-rr.c
index 97db0bd..77aef21 100644
--- a/libmate-desktop/mate-rr.c
+++ b/libmate-desktop/mate-rr.c
@@ -292,8 +292,8 @@ has_similar_mode (MateRROutput *output, MateRRMode *mode)
{
int i;
MateRRMode **modes = mate_rr_output_list_modes (output);
- int width = mate_rr_mode_get_width (mode);
- int height = mate_rr_mode_get_height (mode);
+ guint width = mate_rr_mode_get_width (mode);
+ guint height = mate_rr_mode_get_height (mode);
for (i = 0; modes[i] != NULL; ++i)
{
@@ -1670,7 +1670,7 @@ static const RotationMap rotation_map[] =
static MateRRRotation
mate_rr_rotation_from_xrotation (Rotation r)
{
- int i;
+ gsize i;
MateRRRotation result = 0;
for (i = 0; i < G_N_ELEMENTS (rotation_map); ++i)
@@ -1685,7 +1685,7 @@ mate_rr_rotation_from_xrotation (Rotation r)
static Rotation
xrotation_from_rotation (MateRRRotation r)
{
- int i;
+ gsize i;
Rotation result = 0;
for (i = 0; i < G_N_ELEMENTS (rotation_map); ++i)