Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
c8149ce3
Commit
c8149ce3
authored
Aug 10, 2023
by
Paul
Browse files
Fix some more unit tests
parent
5ee6f0c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/msgpack.cpp
src/msgpack.cpp
+2
-2
No files found.
src/msgpack.cpp
View file @
c8149ce3
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment