Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[mc] Fix binary search removal in ObjectInformation::remove_global_variable()
[simgrid.git] / src / mc / ObjectInformation.cpp
index 9d66b0e..94134d6 100644 (file)
@@ -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)