1
0
Fork 0

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

release/0.4.5
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); MarkTileDirtyByTile(dirty);
} }

View File

@ -469,7 +469,7 @@ DEF_CONSOLE_CMD(ConResetCompany)
NetworkClientInfo *ci; NetworkClientInfo *ci;
if (argc == 2) { if (argc == 2) {
uint32 index = atoi(argv[1]); byte index = atoi(argv[1]);
/* Check valid range */ /* Check valid range */
if (index < 1 || index > MAX_PLAYERS) { 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_pos.y = y;
_cursor.draw_size.y = h; _cursor.draw_size.y = h;
assert(w*h < sizeof(_cursor_backup)); assert(w*h < (int) sizeof(_cursor_backup));
// Make backup of stuff below cursor // Make backup of stuff below cursor
memcpy_pitch( memcpy_pitch(

View File

@ -40,7 +40,7 @@ static void DrawGraph(GraphDrawer *gw)
{ {
int i,j,k; int i,j,k;
int x,y,old_x,old_y; uint x,y,old_x,old_y;
int color; int color;
int right, bottom; int right, bottom;
int num_x, num_dataset; int num_x, num_dataset;