Complete.Org: Mailing Lists: Archives: freeciv-dev: August 2001:
[Freeciv-Dev] [PATCH] gotohand.c unsigned - signed clearup
Home

[Freeciv-Dev] [PATCH] gotohand.c unsigned - signed clearup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] [PATCH] gotohand.c unsigned - signed clearup
From: Markus Linnala <maage@xxxxxxxxx>
Date: 25 Aug 2001 12:21:19 +0300
Reply-to: Markus Linnala <maage@xxxxxxxxx>

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


[Prev in Thread] Current Thread [Next in Thread]