diff --git a/zenoh-plugin-ros2dds/src/dds_discovery.rs b/zenoh-plugin-ros2dds/src/dds_discovery.rs index b37fef8..9077b9d 100644 --- a/zenoh-plugin-ros2dds/src/dds_discovery.rs +++ b/zenoh-plugin-ros2dds/src/dds_discovery.rs @@ -223,7 +223,7 @@ impl DDSRawSample { pub fn len(&self) -> usize { #[cfg(feature = "dds_shm")] { - self.data.iov_len + self.iox_chunk.as_ref().map(IoxChunk::len).unwrap_or(0) + self.data.iov_len + self.iox_chunk.as_ref().map(IoxChunk::len).unwrap_or(0usize) } #[cfg(not(feature = "dds_shm"))]