Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make pointer parameter const.
[simgrid.git] / src / smpi / internals / smpi_shared.cpp
index 766ee46..50be4ae 100644 (file)
@@ -155,7 +155,7 @@ constexpr unsigned HUGE_PAGE_SIZE = 1U << 21;
  * The others are not.
  */
 
-void* smpi_shared_malloc_partial(size_t size, size_t* shared_block_offsets, int nb_shared_blocks)
+void* smpi_shared_malloc_partial(size_t size, const size_t* shared_block_offsets, int nb_shared_blocks)
 {
   std::string huge_page_mount_point = simgrid::config::get_value<std::string>("smpi/shared-malloc-hugepage");
   bool use_huge_page                = not huge_page_mount_point.empty();