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
02f82c0a
Commit
02f82c0a
authored
Jun 11, 2021
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix sign-compare warnings on GCC
parent
a2a95aae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
libcaf_core/caf/config_value.hpp
libcaf_core/caf/config_value.hpp
+1
-1
libcaf_core/caf/defaults.hpp
libcaf_core/caf/defaults.hpp
+1
-1
libcaf_core/caf/detail/print.hpp
libcaf_core/caf/detail/print.hpp
+2
-1
libcaf_core/caf/type_id_list.hpp
libcaf_core/caf/type_id_list.hpp
+2
-1
No files found.
libcaf_core/caf/config_value.hpp
View file @
02f82c0a
...
...
@@ -362,7 +362,7 @@ expected<T> get_as(const config_value& x, inspector_access_type::builtin) {
}
else
if
constexpr
(
std
::
is_integral
<
T
>::
value
)
{
if
(
auto
result
=
x
.
to_integer
())
{
if
(
detail
::
bounds_checker
<
T
>::
check
(
*
result
))
return
*
result
;
return
static_cast
<
T
>
(
*
result
)
;
else
return
make_error
(
sec
::
conversion_failed
,
"narrowing error"
);
}
else
{
...
...
libcaf_core/caf/defaults.hpp
View file @
02f82c0a
...
...
@@ -59,7 +59,7 @@ constexpr auto calibration_interval = int32_t{20};
/// Value between 0 and 1 representing the degree of weighting decrease for
/// adjusting batch sizes. A higher factor discounts older observations faster.
constexpr
auto
smoothing_factor
=
float
{
0.6
}
;
constexpr
auto
smoothing_factor
=
0.6
f
;
}
// namespace caf::defaults::stream::size_policy
...
...
libcaf_core/caf/detail/print.hpp
View file @
02f82c0a
...
...
@@ -231,7 +231,8 @@ void print(Buffer& buf,
// We print in ISO 8601 format, e.g., "2020-09-01T15:58:42.372". 32-Bytes are
// more than enough space.
char
stack_buffer
[
32
];
auto
pos
=
print_timestamp
(
stack_buffer
,
32
,
secs
,
msecs
);
auto
pos
=
print_timestamp
(
stack_buffer
,
32
,
secs
,
static_cast
<
size_t
>
(
msecs
));
buf
.
insert
(
buf
.
end
(),
stack_buffer
,
stack_buffer
+
pos
);
}
...
...
libcaf_core/caf/type_id_list.hpp
View file @
02f82c0a
...
...
@@ -62,7 +62,8 @@ public:
int
s2
=
other
.
data_
[
0
];
int
diff
=
s1
-
s2
;
if
(
diff
==
0
)
return
memcmp
(
begin
(),
other
.
begin
(),
s1
*
sizeof
(
type_id_t
));
return
memcmp
(
begin
(),
other
.
begin
(),
static_cast
<
unsigned
>
(
s1
)
*
sizeof
(
type_id_t
));
return
diff
;
}
...
...
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