(svn r1631) A couple of fixes for the signed/unsigned warnings. Only train_cmd.c remains to need fixing...

This commit is contained in:
dominik 2005-01-23 23:58:35 +00:00
parent 6912223444
commit 29e0ded977
4 changed files with 4 additions and 4 deletions

View File

@ -595,7 +595,7 @@ void TileLoopClearHelper(uint tile)
}
}
if (dirty != -1)
if (dirty != (uint) -1)
MarkTileDirtyByTile(dirty);
}

View File

@ -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) {

2
gfx.c
View File

@ -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(

View File

@ -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;