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] Fix binary search removal in ObjectInformation::remove_global_variable()
[simgrid.git]
/
src
/
mc
/
ObjectInformation.cpp
diff --git
a/src/mc/ObjectInformation.cpp
b/src/mc/ObjectInformation.cpp
index
9d66b0e
..
94134d6
100644
(file)
--- a/
src/mc/ObjectInformation.cpp
+++ b/
src/mc/ObjectInformation.cpp
@@
-127,7
+127,7
@@
void ObjectInformation::remove_global_variable(const char* name)
end++;
// Remove the whole range:
this->global_variables.erase(
- this->global_variables.begin() +
cursor
,
+ this->global_variables.begin() +
start
,
this->global_variables.begin() + end + 1);
return;
} else if (cmp < 0)