]> AND Public Git Repository - simgrid.git/blobdiff - src/surf/xml/surfxml_parseplatf.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Storage-kill: last crumbs
[simgrid.git] / src / surf / xml / surfxml_parseplatf.cpp
index 1a0e0add214f1d4cf7073471a1b157b57e995318..59e24dbdcce061e67824cb1e09b45bccb4d63bba 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2006-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2006-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -61,7 +61,7 @@ void sg_platf_trace_connect(simgrid::kernel::routing::TraceConnectCreationArgs*
 void parse_platform_file(const std::string& file)
 {
   const char* cfile = file.c_str();
-  int len           = strlen(cfile);
+  size_t len        = strlen(cfile);
   bool is_lua       = len > 3 && file[len - 3] == 'l' && file[len - 2] == 'u' && file[len - 1] == 'a';
 
   sg_platf_init();