From 0151bd48ddef6c7679b1fd6fcce9db6340ab80d0 Mon Sep 17 00:00:00 2001 From: Leonardo Hernández Hernández Date: Wed, 11 Jan 2023 12:13:53 -0600 Subject: turn on -Wsign-compare --- client.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client.h') diff --git a/client.h b/client.h index 1dae434..0753da8 100644 --- a/client.h +++ b/client.h @@ -339,10 +339,10 @@ client_set_size(Client *c, uint32_t width, uint32_t height) return 0; } #endif - if (width == c->surface.xdg->toplevel->current.width - && height ==c->surface.xdg->toplevel->current.height) + if ((int32_t)width == c->surface.xdg->toplevel->current.width + && (int32_t)height == c->surface.xdg->toplevel->current.height) return 0; - return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, width, height); + return wlr_xdg_toplevel_set_size(c->surface.xdg->toplevel, (int32_t)width, (int32_t)height); } static inline void -- cgit v1.2.3