aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-08 12:30:42 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-08 12:30:42 +0100
commitbacd40d6db684e043a8fdcc5f56f349105b53e75 (patch)
tree24017e3e53a810dc27c9e2b9d2ed33bb15d3b386 /sway
parent4546ce11889b3b5b29a33b4684d368d74aaea760 (diff)
Fix clang warnings
Diffstat (limited to 'sway')
-rw-r--r--sway/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands.c b/sway/commands.c
index b8af0d06..6a93c84a 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -870,8 +870,8 @@ static struct cmd_results *cmd_move(int argc, char **argv) {
uint32_t w = size->w - g.size.w;
uint32_t h = size->h - g.size.h;
- view->x = g.origin.x = MIN(w, MAX(x, 0));
- view->y = g.origin.y = MIN(h, MAX(y, 0));
+ view->x = g.origin.x = MIN((int32_t)w, MAX(x, 0));
+ view->y = g.origin.y = MIN((int32_t)h, MAX(y, 0));
wlc_view_set_geometry(view->handle, 0, &g);
}