--- a/Makefile Sun Jan 09 18:49:18 2005 +0000
+++ b/Makefile Sun Jan 09 18:59:16 2005 +0000
@@ -290,7 +290,7 @@
# -O optimize or -O2 fully optimize (O's above 2 are not recommended)
# -pg profile - generate profiling data. See "man gprof" to use this.
-CFLAGS=-Wall -Wno-multichar
+CFLAGS=-Wall -Wno-multichar -Wsign-compare
CDEFS=-DWITH_REV
LDFLAGS=
LIBS=
--- a/map.c Sun Jan 09 18:49:18 2005 +0000
+++ b/map.c Sun Jan 09 18:59:16 2005 +0000
@@ -29,7 +29,7 @@
uint y;
dx = add & MapMaxX();
- if (dx >= MapSizeX() / 2) dx -= MapSizeX();
+ if (dx >= (int)MapSizeX() / 2) dx -= MapSizeX();
dy = (add - dx) / (int)MapSizeX();
x = TileX(tile) + dx;