Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Use type bool for boolean variables.
[simgrid.git] / src / surf / xml / surfxml_parseplatf.cpp
index 7800a14..756c7d6 100644 (file)
@@ -62,7 +62,7 @@ void parse_platform_file(const std::string& file)
 {
   const char* cfile = file.c_str();
   int len           = strlen(cfile);
-  int is_lua        = len > 3 && file[len - 3] == 'l' && file[len - 2] == 'u' && file[len - 1] == 'a';
+  bool is_lua       = len > 3 && file[len - 3] == 'l' && file[len - 2] == 'u' && file[len - 1] == 'a';
 
   sg_platf_init();