Skip to content

Commit

Permalink
Merge pull request #514 from orecham/iox2-490-bugfixes-in-cxx-slice-api
Browse files Browse the repository at this point in the history
[#490] bugfix in cxx slice api
  • Loading branch information
orecham authored Nov 13, 2024
2 parents 9463c6d + c65c1f4 commit f2a948b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ inline auto SampleMut<S, Payload, UserHeader>::payload() const -> iox::Immutable

iox2_sample_mut_payload(&m_handle, &ptr, &number_of_elements);

return iox::ImmutableSlice<ValueType>(static_cast<ValueType*>(ptr), number_of_elements);
return iox::ImmutableSlice<ValueType>(static_cast<const ValueType*>(ptr), number_of_elements);
}

template <ServiceType S, typename Payload, typename UserHeader>
Expand Down

0 comments on commit f2a948b

Please sign in to comment.