Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
xbt_dynar_length returns an unsigned long, not a size_t.
[simgrid.git] / examples / msg / io / file.c
index 3cd1c83..29ebc85 100644 (file)
@@ -42,7 +42,7 @@ int main(int argc, char **argv)
   xbt_dynar_t hosts =  MSG_hosts_as_dynar();
   MSG_function_register("host", host);
 
-  XBT_INFO("Number of host '%zu'",xbt_dynar_length(hosts));
+  XBT_INFO("Number of host '%lu'",xbt_dynar_length(hosts));
   for(i = 0 ; i<xbt_dynar_length(hosts); i++)
   {
     char* name_host = bprintf("%d",i);