<URL: http://bugs.freeciv.org/Ticket/Display.html?id=37603 >

 Avoid compiler warning by explicitly casting size_t to int.


 - ML

diff -Nurd -X.diff_ignore freeciv/server/report.c freeciv/server/report.c
--- freeciv/server/report.c	2007-03-05 21:09:47.000000000 +0200
+++ freeciv/server/report.c	2007-03-06 00:02:13.000000000 +0200
@@ -607,7 +607,7 @@
 
     cat_snprintf(outptr, out_size, " %s", text);
     cat_snprintf(outptr, out_size, "%*s",
-		 18 - get_internal_string_length(text), "");
+                 18 - (int) get_internal_string_length(text), "");
   }
 
   if (BV_ISSET(selcols, DEM_COL_RANK)) {
@@ -750,7 +750,7 @@
 
       cat_snprintf(buffer, sizeof(buffer), "%s", name);
       cat_snprintf(buffer, sizeof(buffer), "%*s",
-		   18 - get_internal_string_length(name), "");
+                   18 - (int) get_internal_string_length(name), "");
       dem_line_item(buffer, sizeof(buffer), pplayer, &rowtable[i], selcols);
       sz_strlcat(buffer, "\n");
     }
_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to