Skip to content

Commit 351eded

Browse files
committed
quic: fixup mac build issue
1 parent 14abeb3 commit 351eded

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/quic/streams.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,9 @@ class Stream::Outbound final : public MemoryRetainer {
295295
while (remaining > 0 && commit_head_ != nullptr) {
296296
// The amount to commit is the lesser of the total amount remaining to
297297
// 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);
298+
size_t amount_to_commit = std::min(
299+
remaining,
300+
static_cast<size_t>(commit_head_->buf.len - commit_head_->offset));
300301

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

0 commit comments

Comments
 (0)