summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-23 23:58:35 +0000
committerdominik <dominik@openttd.org>2005-01-23 23:58:35 +0000
commit29e0ded97786a26acf3ce950d3c497e940d8c671 (patch)
treeccc30bedd6ad1caed0ed2cac2e9686b391436ee0
parent69122234445b477d19b69f56c83214650d04e877 (diff)
downloadopenttd-29e0ded97786a26acf3ce950d3c497e940d8c671.tar.xz
(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...
-rw-r--r--clear_cmd.c2
-rw-r--r--console_cmds.c2
-rw-r--r--gfx.c2
-rw-r--r--graph_gui.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index de411c72a..27942bcb6 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 0495ccf20..3a0562bb0 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 bc28816c1..bc9c6eea1 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 7c82ad708..fdd6a1ee5 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;