diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-06-22 17:02:28 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-06-27 10:13:37 +0200 |
commit | fa38d862358b87219b12bf31236c52f28d9fc5d6 (patch) | |
tree | 5c5c6b18bc1df274a75332b4b60ea6f076097cf1 /src/test/fuzz | |
parent | fa257bc8312b91c2d281f48ca2500d9cba353cc5 (diff) |
Use only Span{} constructor for byte-like types where possible
This removes bloat that is not needed.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r-- | src/test/fuzz/p2p_transport_serialization.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/p2p_transport_serialization.cpp b/src/test/fuzz/p2p_transport_serialization.cpp index ec3cdbff5a..a6fe3037e6 100644 --- a/src/test/fuzz/p2p_transport_serialization.cpp +++ b/src/test/fuzz/p2p_transport_serialization.cpp @@ -77,7 +77,7 @@ FUZZ_TARGET_INIT(p2p_transport_serialization, initialize_p2p_transport_serializa assert(msg.m_time == m_time); std::vector<unsigned char> header; - auto msg2 = CNetMsgMaker{msg.m_recv.GetVersion()}.Make(msg.m_type, MakeUCharSpan(msg.m_recv)); + auto msg2 = CNetMsgMaker{msg.m_recv.GetVersion()}.Make(msg.m_type, Span{msg.m_recv}); serializer.prepareForTransport(msg2, header); } } |