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
92bbd3b4
Commit
92bbd3b4
authored
Mar 25, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sign-compare warning on GCC
parent
a7103330
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
libcaf_core/src/message.cpp
libcaf_core/src/message.cpp
+2
-1
No files found.
libcaf_core/src/message.cpp
View file @
92bbd3b4
...
@@ -49,7 +49,8 @@ bool load_data(Deserializer& source, message::data_ptr& data) {
...
@@ -49,7 +49,8 @@ bool load_data(Deserializer& source, message::data_ptr& data) {
GUARDED
(
source
.
begin_field
(
"types"
));
GUARDED
(
source
.
begin_field
(
"types"
));
size_t
msg_size
=
0
;
size_t
msg_size
=
0
;
GUARDED
(
source
.
begin_sequence
(
msg_size
));
GUARDED
(
source
.
begin_sequence
(
msg_size
));
if
(
msg_size
>
std
::
numeric_limits
<
uint16_t
>::
max
()
-
1
)
using
uint16_limits
=
std
::
numeric_limits
<
uint16_t
>
;
if
(
msg_size
>
static_cast
<
size_t
>
(
uint16_limits
::
max
()
-
1
))
STOP
(
sec
::
invalid_argument
,
"too many types for message"
);
STOP
(
sec
::
invalid_argument
,
"too many types for message"
);
if
(
msg_size
==
0
)
{
if
(
msg_size
==
0
)
{
data
.
reset
();
data
.
reset
();
...
...
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