A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[mc] Use string::compare instead of strcmp
[simgrid.git]
/
src
/
mc
/
mc_dwarf.hpp
diff --git
a/src/mc/mc_dwarf.hpp
b/src/mc/mc_dwarf.hpp
index
8e73e28
..
7cde115
100644
(file)
--- a/
src/mc/mc_dwarf.hpp
+++ b/
src/mc/mc_dwarf.hpp
@@
-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)