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
Use string::compare with C++ strings.
[simgrid.git]
/
src
/
mc
/
mc_dwarf.cpp
diff --git
a/src/mc/mc_dwarf.cpp
b/src/mc/mc_dwarf.cpp
index
40d650a
..
ec22c9a
100644
(file)
--- a/
src/mc/mc_dwarf.cpp
+++ b/
src/mc/mc_dwarf.cpp
@@
-447,7
+447,7
@@
static uint64_t MC_dwarf_array_element_count(Dwarf_Die * die, Dwarf_Die * unit)
static 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)