From ea0ecfcaf78e8dc1094357d908313326fe1201dc Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 11 Jan 2021 10:47:48 +0100 Subject: chdr: Fix u64_to_host vs. u64_from_host usage --- host/lib/utils/chdr/chdr_packet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'host/lib/utils') diff --git a/host/lib/utils/chdr/chdr_packet.cpp b/host/lib/utils/chdr/chdr_packet.cpp index 6a0e3f8bb..fe836199e 100644 --- a/host/lib/utils/chdr/chdr_packet.cpp +++ b/host/lib/utils/chdr/chdr_packet.cpp @@ -114,7 +114,7 @@ chdr_util::chdr_packet chdr_util::chdr_packet::deserialize_ptr( UHD_ASSERT_THROW(mdata_src_end < static_cast(end)); std::transform( mdata_src_begin, mdata_src_end, mdata_ptr, [endianness](uint64_t value) { - return u64_from_host(endianness, value); + return u64_to_host(endianness, value); }); size_t payload_size = packet_writer->get_payload_size(); -- cgit v1.2.3