Commit 898e5ed0 authored by Dominik Charousset's avatar Dominik Charousset

Fix integer sign warning

parent 1e9fab4d
...@@ -50,7 +50,7 @@ error stream_source::downstream_demand(strong_actor_ptr& hdl, long value) { ...@@ -50,7 +50,7 @@ error stream_source::downstream_demand(strong_actor_ptr& hdl, long value) {
auto current_size = buf_size(); auto current_size = buf_size();
auto size_hint = out().total_net_credit(); auto size_hint = out().total_net_credit();
if (current_size < size_hint) if (current_size < size_hint)
generate(size_hint - current_size); generate(static_cast<size_t>(size_hint - current_size));
return push(&size_hint); return push(&size_hint);
} }
// transmit cached elements before closing paths // transmit cached elements before closing paths
...@@ -71,7 +71,7 @@ void stream_source::generate() { ...@@ -71,7 +71,7 @@ void stream_source::generate() {
auto current_size = buf_size(); auto current_size = buf_size();
auto size_hint = out().total_net_credit(); auto size_hint = out().total_net_credit();
if (current_size < size_hint) if (current_size < size_hint)
generate(size_hint - current_size); generate(static_cast<size_t>(size_hint - current_size));
} }
} }
......
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