summaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-06-16 23:47:27 +0200
committerAnna (navi) Figueiredo Gomes <navi@vlhl.dev>2024-06-16 23:47:40 +0200
commit79b3a25865a1ee444fa32698670320f87dbc45a7 (patch)
tree3b96352377f6aea32de0ae6a34f43da52550f327 /server.c
parentea86c8151fc3578b0b484ea2c40dfca372f3173f (diff)
server.c: fix -Wsign-compare warning
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Diffstat (limited to 'server.c')
-rw-r--r--server.c2
1 files changed, 1 insertions, 1 deletions
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];