-/* Copyright (c) 2014-2017. The SimGrid Team.
+/* Copyright (c) 2014-2019. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
if (cmp == 0) {
// Find the whole range:
- size_type first = cursor;
+ first = cursor;
while (first != 0 && this->global_variables[first - 1].name == name)
first--;
size_type size = this->global_variables.size();
- size_type last = cursor;
+ last = cursor;
while (last != size - 1 && this->global_variables[last + 1].name == name)
last++;