[Freeciv-Dev] [PATCH] gotohand.c unsigned - signed clearup
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Clear warnings: 'comparison between signed and unsigned' at
gotohand.c.
diff -ur -x'*.o' -x'*.a' -xcore -x'*.gz' -x'*.in' -x'Makefile*' -x'*.P'
-x'*.out' freeciv-cvs/server/gotohand.c freeciv-con/server/gotohand.c
--- freeciv-cvs/server/gotohand.c Thu Aug 23 22:11:37 2001
+++ freeciv-con/server/gotohand.c Sat Aug 25 12:07:12 2001
@@ -1327,7 +1327,7 @@
**************************************************************************/
static void dealloc_refuel_stack(void)
{
- int i;
+ unsigned int i;
for (i = 0; i < refuellist_size; i++)
free(refuels[i]);
}
@@ -1387,8 +1387,8 @@
int reached_goal;
int turns, start_turn;
int max_moves, moves_left;
- int new_nodes, no_new_nodes;
- int i, j, k;
+ unsigned int new_nodes, no_new_nodes, j, k;
+ int i;
if (been_there == NULL) {
/* These are big enough for anything! */
--
//Markus
- [Freeciv-Dev] [PATCH] gotohand.c unsigned - signed clearup,
Markus Linnala <=
|
|