Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Explicit cast when loosing precision (C examples).
[simgrid.git] / examples / c / app-token-ring / app-token-ring.c
index 1484d2b058a7214758461328194c6ff903f6d424..69c6fc177f561ab07e9b595f4cd426648157691a 100644 (file)
@@ -23,7 +23,7 @@ static void relay_runner(int argc, char* argv[])
   xbt_assert(argc == 0, "The relay_runner function does not accept any parameter from the XML deployment file");
 
   const char* name = sg_actor_self_get_name();
-  int rank         = xbt_str_parse_int(name, "Any actor of this example must have a numerical name, not %s");
+  int rank         = (int)xbt_str_parse_int(name, "Any actor of this example must have a numerical name, not %s");
 
   sg_mailbox_t my_mailbox = sg_mailbox_by_name(name);