We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14abeb3 commit 351ededCopy full SHA for 351eded
src/quic/streams.cc
@@ -295,8 +295,9 @@ class Stream::Outbound final : public MemoryRetainer {
295
while (remaining > 0 && commit_head_ != nullptr) {
296
// The amount to commit is the lesser of the total amount remaining to
297
// commit and the remaining uncommitted bytes in this chunk.
298
- size_t amount_to_commit =
299
- std::min(remaining, commit_head_->buf.len - commit_head_->offset);
+ size_t amount_to_commit = std::min(
+ remaining,
300
+ static_cast<size_t>(commit_head_->buf.len - commit_head_->offset));
301
302
// The amount to commit here should never be zero because that means we
303
// should have already advanced the commit head.
0 commit comments