From 29e0ded97786a26acf3ce950d3c497e940d8c671 Mon Sep 17 00:00:00 2001 From: dominik Date: Sun, 23 Jan 2005 23:58:35 +0000 Subject: [PATCH] (svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing... --- clear_cmd.c | 2 +- console_cmds.c | 2 +- gfx.c | 2 +- graph_gui.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/clear_cmd.c b/clear_cmd.c index de411c72ac..27942bcb6e 100644 --- a/clear_cmd.c +++ b/clear_cmd.c @@ -595,7 +595,7 @@ void TileLoopClearHelper(uint tile) } } - if (dirty != -1) + if (dirty != (uint) -1) MarkTileDirtyByTile(dirty); } diff --git a/console_cmds.c b/console_cmds.c index 0495ccf206..3a0562bb09 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -469,7 +469,7 @@ DEF_CONSOLE_CMD(ConResetCompany) NetworkClientInfo *ci; if (argc == 2) { - uint32 index = atoi(argv[1]); + byte index = atoi(argv[1]); /* Check valid range */ if (index < 1 || index > MAX_PLAYERS) { diff --git a/gfx.c b/gfx.c index bc28816c19..bc9c6eea19 100644 --- a/gfx.c +++ b/gfx.c @@ -1684,7 +1684,7 @@ void DrawMouseCursor(void) _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( diff --git a/graph_gui.c b/graph_gui.c index 7c82ad7089..fdd6a1ee5c 100644 --- a/graph_gui.c +++ b/graph_gui.c @@ -40,7 +40,7 @@ static void DrawGraph(GraphDrawer *gw) { 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;