X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/a75c48b9362dfc8b1cfcc329885943d85e42464e..b0d07f67c6153ee2689bc22486c95becf4286493:/src/mc/sosp/PageStore.hpp diff --git a/src/mc/sosp/PageStore.hpp b/src/mc/sosp/PageStore.hpp index c78f57509f..0853b6d905 100644 --- a/src/mc/sosp/PageStore.hpp +++ b/src/mc/sosp/PageStore.hpp @@ -141,7 +141,7 @@ public: * @param pageno Number of the memory page in the store * @return Start of the page */ - const void* get_page(std::size_t pageno) const; + void* get_page(std::size_t pageno) const; // Debug/test methods @@ -169,7 +169,7 @@ XBT_ALWAYS_INLINE void PageStore::ref_page(size_t pageno) ++this->page_counts_[pageno]; } -XBT_ALWAYS_INLINE const void* PageStore::get_page(std::size_t pageno) const +XBT_ALWAYS_INLINE void* PageStore::get_page(std::size_t pageno) const { return (void*)simgrid::mc::mmu::join(pageno, (std::uintptr_t)this->memory_); }