diff options
author | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-06-16 23:47:27 +0200 |
---|---|---|
committer | Anna (navi) Figueiredo Gomes <navi@vlhl.dev> | 2024-06-16 23:47:40 +0200 |
commit | 79b3a25865a1ee444fa32698670320f87dbc45a7 (patch) | |
tree | 3b96352377f6aea32de0ae6a34f43da52550f327 | |
parent | ea86c8151fc3578b0b484ea2c40dfca372f3173f (diff) |
server.c: fix -Wsign-compare warning
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
-rw-r--r-- | server.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |