X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/611d822b02f836d7abe031cced6adc4281ef4356..3f2f18b52285fde45c284ccb83610d4937c16c59:/src/mc/ObjectInformation.cpp diff --git a/src/mc/ObjectInformation.cpp b/src/mc/ObjectInformation.cpp index b7ac924cfb..1f5e70320e 100644 --- a/src/mc/ObjectInformation.cpp +++ b/src/mc/ObjectInformation.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2018. 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 @@ -108,11 +108,11 @@ void ObjectInformation::remove_global_variable(const char* name) 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++;