From: Gabriel Corona Date: Wed, 10 Feb 2016 13:38:46 +0000 (+0100) Subject: [mc] Fix binary search removal in ObjectInformation::remove_global_variable() X-Git-Tag: v3_13~872^2~5 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/63fb63c73b4ec62f3b415607d879af09c4924dc8 [mc] Fix binary search removal in ObjectInformation::remove_global_variable() --- diff --git a/src/mc/ObjectInformation.cpp b/src/mc/ObjectInformation.cpp index 9d66b0ebb4..94134d660f 100644 --- 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)