summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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];