Commit daef91bc authored by Dominik Charousset's avatar Dominik Charousset

Fix sign warnings

parent fc4c882a
...@@ -80,7 +80,7 @@ public: ...@@ -80,7 +80,7 @@ public:
auto wrapped_chunk = make_message(std::move(chunk)); auto wrapped_chunk = make_message(std::move(chunk));
for (auto& x : l.paths) { for (auto& x : l.paths) {
x->open_credit -= csize; x->open_credit -= csize;
this->emit_batch(*x, csize, wrapped_chunk); this->emit_batch(*x, static_cast<size_t>(csize), wrapped_chunk);
} }
} }
} }
...@@ -96,7 +96,8 @@ public: ...@@ -96,7 +96,8 @@ public:
if (csize == 0) if (csize == 0)
break; break;
x->open_credit -= csize; x->open_credit -= csize;
this->emit_batch(*x, csize, std::move(make_message(std::move(chunk)))); this->emit_batch(*x, static_cast<size_t>(csize),
std::move(make_message(std::move(chunk))));
} }
} }
} }
......
...@@ -89,7 +89,7 @@ public: ...@@ -89,7 +89,7 @@ public:
for (auto& x : this->paths_) { for (auto& x : this->paths_) {
CAF_ASSERT(x->open_credit >= csize); CAF_ASSERT(x->open_credit >= csize);
x->open_credit -= csize; x->open_credit -= csize;
this->emit_batch(*x, csize, wrapped_chunk); this->emit_batch(*x, static_cast<size_t>(csize), wrapped_chunk);
} }
} }
......
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