[libwnck/wip/warnings3: 9/12] screen: fix signed / unsigned warnings
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libwnck/wip/warnings3: 9/12] screen: fix signed / unsigned warnings
- Date: Fri, 5 May 2017 09:47:29 +0000 (UTC)
commit 1312762e14eb15550b0887afac79822bc2e63ea8
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Apr 28 14:50:24 2017 +0300
screen: fix signed / unsigned warnings
libwnck/screen.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/libwnck/screen.c b/libwnck/screen.c
index 9224a01..9ef3a1d 100644
--- a/libwnck/screen.c
+++ b/libwnck/screen.c
@@ -1888,12 +1888,12 @@ update_viewport_settings (WnckScreen *screen)
space = wnck_screen_get_workspace (screen, i);
g_assert (space != NULL);
- /* p_coord[x] is unsigned, and thus >= 0 */
- if (p_coord[x] > space_width - screen_width)
+ /* p_coord[x] is unsigned, and thus >= 0 */
+ if ((int) p_coord[x] > space_width - screen_width)
p_coord[x] = space_width - screen_width;
- /* p_coord[y] is unsigned, and thus >= 0 */
- if (p_coord[y] > space_height - screen_height)
+ /* p_coord[y] is unsigned, and thus >= 0 */
+ if ((int) p_coord[y] > space_height - screen_height)
p_coord[y] = space_height - screen_height;
if (_wnck_workspace_set_viewport (space,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]