X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/923c96522e059639b7722b35d033d79d9b0b5590..a49a03122b2def71ff741e78d15b38cd1d171184:/src/mc/PageStore.cpp diff --git a/src/mc/PageStore.cpp b/src/mc/PageStore.cpp index 29d624c055..a2e49930c9 100644 --- a/src/mc/PageStore.cpp +++ b/src/mc/PageStore.cpp @@ -1,11 +1,11 @@ -/* Copyright (c) 2015. The SimGrid Team. +/* Copyright (c) 2015-2017. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#include // memcpy, memcmp #include -#include // memcpy, memcmp #include #ifdef __FreeBSD__ @@ -162,7 +162,7 @@ std::size_t PageStore::store_page(void* page) // Try to find a duplicate in set of pages with the same hash: page_set_type& page_set = this->hash_index_[hash]; - for (size_t pageno : page_set) { + for (size_t const& pageno : page_set) { const void* snapshot_page = this->get_page(pageno); if (memcmp(page, snapshot_page, xbt_pagesize) == 0) {