summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-04-28 14:50:24 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2017-04-28 14:50:24 +0300
commit11b8452ac975d47df16ef6b02b5664437b57494a (patch)
treef04f8904dd3dad7efea5c8c29a81d54df8290fdc
parentc0f01a183dbf9bfc06347ddca8ffda1bfcb490ba (diff)
downloadlibwnck-11b8452ac975d47df16ef6b02b5664437b57494a.tar.gz
screen: fix signed / unsigned warnings
-rw-r--r--libwnck/screen.c8
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,