Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
bba43305
Commit
bba43305
authored
Feb 09, 2019
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix binary_deserializer::begin_object
parent
90e64f0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
libcaf_core/src/binary_deserializer.cpp
libcaf_core/src/binary_deserializer.cpp
+2
-2
libcaf_core/test/serialization.cpp
libcaf_core/test/serialization.cpp
+2
-1
No files found.
libcaf_core/src/binary_deserializer.cpp
View file @
bba43305
...
@@ -72,10 +72,10 @@ binary_deserializer::binary_deserializer(execution_unit* ctx, const buffer& buf)
...
@@ -72,10 +72,10 @@ binary_deserializer::binary_deserializer(execution_unit* ctx, const buffer& buf)
}
}
error
binary_deserializer
::
begin_object
(
uint16_t
&
nr
,
std
::
string
&
name
)
{
error
binary_deserializer
::
begin_object
(
uint16_t
&
nr
,
std
::
string
&
name
)
{
if
(
nr
!=
0
)
return
apply
(
nr
);
if
(
auto
err
=
apply
(
nr
))
if
(
auto
err
=
apply
(
nr
))
return
err
;
return
err
;
if
(
nr
!=
0
)
return
none
;
return
apply
(
name
);
return
apply
(
name
);
}
}
...
...
libcaf_core/test/serialization.cpp
View file @
bba43305
...
@@ -197,7 +197,8 @@ struct fixture {
...
@@ -197,7 +197,8 @@ struct fixture {
message
result
;
message
result
;
auto
tmp
=
make_message
(
x
);
auto
tmp
=
make_message
(
x
);
deserialize
(
serialize
(
tmp
),
result
);
deserialize
(
serialize
(
tmp
),
result
);
CAF_REQUIRE
(
result
.
match_elements
<
T
>
());
if
(
!
result
.
match_elements
<
T
>
())
CAF_FAIL
(
"expected: "
<<
x
<<
", got: "
<<
result
);
return
result
.
get_as
<
T
>
(
0
);
return
result
.
get_as
<
T
>
(
0
);
}
}
...
...
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