Skip to content

Commit

Permalink
quic: fixup mac build issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Sep 15, 2023
1 parent 14abeb3 commit 351eded
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/quic/streams.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ class Stream::Outbound final : public MemoryRetainer {
while (remaining > 0 && commit_head_ != nullptr) {
// The amount to commit is the lesser of the total amount remaining to
// commit and the remaining uncommitted bytes in this chunk.
size_t amount_to_commit =
std::min(remaining, commit_head_->buf.len - commit_head_->offset);
size_t amount_to_commit = std::min(
remaining,
static_cast<size_t>(commit_head_->buf.len - commit_head_->offset));

// The amount to commit here should never be zero because that means we
// should have already advanced the commit head.
Expand Down

0 comments on commit 351eded

Please sign in to comment.