Changeset - r957:2afd05ac6e7d
[Not reviewed]
master
0 2 0
darkvater - 19 years ago 2005-01-09 18:59:16
darkvater@openttd.org
(svn r1449) -Fix: signed/unsigned error on windows
-Change: Makefile added -Wsign-compare flag
2 files changed with 2 insertions and 2 deletions:
map.c
1
1
0 comments (0 inline, 0 general)
Makefile
Show inline comments
 
@@ -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=
map.c
Show inline comments
 
@@ -29,7 +29,7 @@ TileIndex TileAdd(TileIndex tile, TileIn
 
	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;
0 comments (0 inline, 0 general)