From 79b3a25865a1ee444fa32698670320f87dbc45a7 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 16 Jun 2024 23:47:27 +0200 Subject: server.c: fix -Wsign-compare warning Signed-off-by: Anna (navi) Figueiredo Gomes --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server.c') diff --git a/server.c b/server.c index b08deed..651fccd 100644 --- a/server.c +++ b/server.c @@ -50,7 +50,7 @@ typedef struct { node *map_local_node(map *m, int32_t x, int32_t y) { - if (x < 0 || y < 0 || x >= m->width || y >= m->height) + if (x < 0 || y < 0 || (uint32_t) x >= m->width || (uint32_t) y >= m->height) return NULL; node *n = &m->nodes[x*m->width+y]; -- cgit v1.2.3