-/* Copyright (c) 2014-2019. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2014-2022. 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. */
*/
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;