From 351eded3979a478a31256f3441c7ae82f7496966 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sat, 3 Jun 2023 06:43:00 -0700 Subject: [PATCH] quic: fixup mac build issue --- src/quic/streams.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/quic/streams.cc b/src/quic/streams.cc index 90a34ff51da96f..bde376899dfaa7 100644 --- a/src/quic/streams.cc +++ b/src/quic/streams.cc @@ -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(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.