diff options
Diffstat (limited to 'include/afio/v2.0/utils.hpp')
-rw-r--r-- | include/afio/v2.0/utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/afio/v2.0/utils.hpp b/include/afio/v2.0/utils.hpp index f854be5e..5869bf2a 100644 --- a/include/afio/v2.0/utils.hpp +++ b/include/afio/v2.0/utils.hpp @@ -68,7 +68,7 @@ namespace utils template <class T> inline T round_to_page_size(T i) noexcept { const size_t pagesize = page_size(); - i.data = reinterpret_cast<char *>((AFIO_V2_NAMESPACE::detail::unsigned_integer_cast<uintptr_t>(i.data)) & ~(pagesize - 1)); + i.data = reinterpret_cast<byte *>((AFIO_V2_NAMESPACE::detail::unsigned_integer_cast<uintptr_t>(i.data)) & ~(pagesize - 1)); i.len = (i.len + pagesize - 1) & ~(pagesize - 1); return i; } |