X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/b923f24fcb86571011626426f577fe6322094bb3..971484ce563f93927b06e01daba3f5925045d301:/src/mc/mc_mmu.hpp diff --git a/src/mc/mc_mmu.hpp b/src/mc/mc_mmu.hpp index cd920ce34b..51da19c264 100644 --- a/src/mc/mc_mmu.hpp +++ b/src/mc/mc_mmu.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2014-2020. 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. */ @@ -35,7 +35,7 @@ static int chunk_size() */ static XBT_ALWAYS_INLINE std::size_t chunk_count(std::size_t size) { - size_t page_count = size >> xbt_pagebits; + std::size_t page_count = size >> xbt_pagebits; if (size & (xbt_pagesize - 1)) page_count++; return page_count;