Commit c8149ce3 authored by Paul's avatar Paul
Browse files

Fix some more unit tests

parent 5ee6f0c6
...@@ -36,7 +36,7 @@ constexpr std::size_t msgpack_size_limit = std::numeric_limits<uint32_t>::max() ...@@ -36,7 +36,7 @@ constexpr std::size_t msgpack_size_limit = std::numeric_limits<uint32_t>::max()
template <class Range> template <class Range>
std::size_t msgpack_chunk_size(const Range& r) std::size_t msgpack_chunk_size(const Range& r)
{ {
return r.size() / msgpack_size_limit; return 1 + r.size() / msgpack_size_limit;
} }
template <class Iterator, class F> template <class Iterator, class F>
...@@ -125,7 +125,7 @@ MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) ...@@ -125,7 +125,7 @@ MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
migraphx::overload( migraphx::overload(
[&](migraphx::value::binary& bin) { [&](migraphx::value::binary& bin) {
bin.insert( bin.insert(
bin.end(), o.via.bin.ptr, o.via.bin.ptr + o.via.bin.size); bin.end(), sa.via.bin.ptr, sa.via.bin.ptr + sa.via.bin.size);
}, },
[&](migraphx::value::array& arr) { [&](migraphx::value::array& arr) {
std::for_each(sa.via.array.ptr, std::for_each(sa.via.array.ptr,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment