diff options
author | darkvater <darkvater@openttd.org> | 2005-01-09 18:59:16 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-09 18:59:16 +0000 |
commit | 55604e354f7508b631d67ebe3433dab926ef7af9 (patch) | |
tree | f32ed4d612256d31584d6c1ae97c69856b0b52c5 | |
parent | 3e84b9781f9573fd71571b77c799805f2a5a7c87 (diff) | |
download | openttd-55604e354f7508b631d67ebe3433dab926ef7af9.tar.xz |
(svn r1449) -Fix: signed/unsigned error on windows
-Change: Makefile added -Wsign-compare flag
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | map.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -290,7 +290,7 @@ endif # -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= @@ -29,7 +29,7 @@ TileIndex TileAdd(TileIndex tile, TileIndexDiff add, 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; |