summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;