Build failure due to narrowing on 32 bit archs
In src/common/mm_mem_io_p.h
the constructors for mm_mem_io_private_c perform an implicit conversion of p_mem_size
from uint64_t
to std::size_t
. 32 bit archs usually define std::size_t
to 32 bit. This causes a build failure due to implicit narrowing, e.g. on 32 bit FreeBSD using clang++.
I worked around this by using static_cast<size_t>(p_mem_size)
in the initialisers.