Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
xbt_dynar_length returns an unsigned long, not a size_t.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 29 Feb 2012 09:20:58 +0000 (10:20 +0100)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Wed, 29 Feb 2012 09:20:58 +0000 (10:20 +0100)
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);