(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
authordominik
Sun, 23 Jan 2005 23:58:35 +0000
changeset 1130 236aa7efbe7a
parent 1129 3a1571cf4818
child 1131 21a18a6c1b4b
(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
clear_cmd.c
console_cmds.c
gfx.c
graph_gui.c
--- a/clear_cmd.c	Sun Jan 23 22:39:34 2005 +0000
+++ b/clear_cmd.c	Sun Jan 23 23:58:35 2005 +0000
@@ -595,7 +595,7 @@
 		}
 	}
 
-	if (dirty != -1)
+	if (dirty != (uint) -1)
 		MarkTileDirtyByTile(dirty);
 }
 
--- a/console_cmds.c	Sun Jan 23 22:39:34 2005 +0000
+++ b/console_cmds.c	Sun Jan 23 23:58:35 2005 +0000
@@ -469,7 +469,7 @@
 	NetworkClientInfo *ci;
 
 	if (argc == 2) {
-		uint32 index = atoi(argv[1]);
+		byte index = atoi(argv[1]);
 
 		/* Check valid range */
 		if (index < 1 || index > MAX_PLAYERS) {
--- a/gfx.c	Sun Jan 23 22:39:34 2005 +0000
+++ b/gfx.c	Sun Jan 23 23:58:35 2005 +0000
@@ -1684,7 +1684,7 @@
 	_cursor.draw_pos.y = y;
 	_cursor.draw_size.y = h;
 
-	assert(w*h < sizeof(_cursor_backup));
+	assert(w*h < (int) sizeof(_cursor_backup));
 
 	// Make backup of stuff below cursor
 	memcpy_pitch(
--- a/graph_gui.c	Sun Jan 23 22:39:34 2005 +0000
+++ b/graph_gui.c	Sun Jan 23 23:58:35 2005 +0000
@@ -40,7 +40,7 @@
 {
 
 	int i,j,k;
-	int x,y,old_x,old_y;
+	uint x,y,old_x,old_y;
 	int color;
 	int right, bottom;
 	int num_x, num_dataset;