Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Use string::compare instead of strcmp
[simgrid.git] / src / mc / mc_dwarf.hpp
index 8e73e28..7cde115 100644 (file)
@@ -190,7 +190,7 @@ static inline
 bool MC_compare_variable(
   simgrid::mc::Variable const& a, simgrid::mc::Variable const& b)
 {
-  int cmp = strcmp(a.name.c_str(), b.name.c_str());
+  int cmp = a.name.compare(b.name);
   if (cmp < 0)
     return true;
   else if (cmp > 0)