Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make sure the precision is int to keep 64bits happy
[simgrid.git] / src / xbt / log.c
index 5fde71b..0b22eb9 100644 (file)
@@ -468,7 +468,7 @@ void xbt_log_init(int *argc,char **argv) {
                        
                  if (strncmp(argv[i],"--log=",strlen("--log=")))
                      WARN2("Option %.*s is deprecated and will disapear in the future. Use --log instead.",
                        
                  if (strncmp(argv[i],"--log=",strlen("--log=")))
                      WARN2("Option %.*s is deprecated and will disapear in the future. Use --log instead.",
-                           strchr(argv[i],'=')-argv[i],argv[i]);
+                           (int)(strchr(argv[i],'=')-argv[i]),argv[i]);
 
                  opt=strchr(argv[i],'=');
                  opt++;
 
                  opt=strchr(argv[i],'=');
                  opt++;