aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2021-01-11 10:47:48 +0100
committerAaron Rossetto <aaron.rossetto@ni.com>2021-01-11 12:40:20 -0600
commitea0ecfcaf78e8dc1094357d908313326fe1201dc (patch)
treecbcbdbd353d5bcecb6cf54d8117d20e996e5f29b /host/lib/utils
parent0e67b222f1dda60127d2d68d6a23bd94108526a1 (diff)
downloaduhd-ea0ecfcaf78e8dc1094357d908313326fe1201dc.tar.gz
uhd-ea0ecfcaf78e8dc1094357d908313326fe1201dc.tar.bz2
uhd-ea0ecfcaf78e8dc1094357d908313326fe1201dc.zip
chdr: Fix u64_to_host vs. u64_from_host usage
Diffstat (limited to 'host/lib/utils')
-rw-r--r--host/lib/utils/chdr/chdr_packet.cpp2
1 files changed, 1 insertions, 1 deletions
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<const uint64_t*>(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();