Skip to content

Commit

Permalink
merge from connoranderson:connor/fix_str_tmp_conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisBiryukov91 committed Jan 15, 2025
1 parent 0594263 commit ed25dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/zenoh/api/bytes.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Bytes : public Owned<::z_owned_bytes_t> {
using Dval = std::remove_reference_t<D>;
using DroppableType = typename detail::closures::Droppable<Dval>;
auto drop = DroppableType::into_context(std::forward<D>(d));
::z_bytes_from_str(interop::as_owned_c_ptr(*this), const_cast<char*>(ptr->c_str()),
::z_bytes_from_buf(interop::as_owned_c_ptr(*this), reinterpret_cast<uint8_t*>(ptr->data()), ptr->size(),
detail::closures::_zenoh_drop_with_context, drop);
}

Expand Down

0 comments on commit ed25dac

Please sign in to comment.