diff --git a/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp b/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp index 2451d379..75235727 100644 --- a/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp +++ b/iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp @@ -225,7 +225,7 @@ inline auto SampleMut::payload() const -> iox::Immutable iox2_sample_mut_payload(&m_handle, &ptr, &number_of_elements); - return iox::ImmutableSlice(static_cast(ptr), number_of_elements); + return iox::ImmutableSlice(static_cast(ptr), number_of_elements); } template