[gnome-desktop] rr-config: cast mode id to uint32_t
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] rr-config: cast mode id to uint32_t
- Date: Tue, 13 Feb 2018 19:33:25 +0000 (UTC)
commit c8db18bd58bc9c918f91e85536a2e2cf028b0826
Author: Ernestas Kulik <ernestask gnome org>
Date: Tue Feb 13 21:30:56 2018 +0200
rr-config: cast mode id to uint32_t
In some places it’s used as an unsigned int, in other cases it’s signed,
so this just casts the -1 in a ternary expression to uint32_t, which
makes no difference.
libgnome-desktop/gnome-rr-config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr-config.c b/libgnome-desktop/gnome-rr-config.c
index 7675e5a..707df69 100644
--- a/libgnome-desktop/gnome-rr-config.c
+++ b/libgnome-desktop/gnome-rr-config.c
@@ -1168,7 +1168,7 @@ crtc_assignment_apply (CrtcAssignment *assign, gboolean persistent, GError **err
g_variant_builder_add (&crtc_builder, "(uiiiuaua{sv})",
gnome_rr_crtc_get_id (crtc),
info->mode ?
- gnome_rr_mode_get_id (info->mode) : -1,
+ gnome_rr_mode_get_id (info->mode) : (guint32) -1,
info->x,
info->y,
rotation_to_transform (info->rotation),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]