Skip to content

Commit

Permalink
quic: fix missing cast in assertions (envoyproxy#16301)
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Gokul Nair <[email protected]>
  • Loading branch information
goaway authored and Gokul Nair committed May 6, 2021
1 parent fdfd990 commit 5ca8184
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion source/common/quic/envoy_quic_client_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ EnvoyQuicClientStream::EnvoyQuicClientStream(
static_cast<uint32_t>(GetReceiveWindow().value()), *filterManagerConnection(),
[this]() { runLowWatermarkCallbacks(); }, [this]() { runHighWatermarkCallbacks(); },
stats, http3_options) {
ASSERT(GetReceiveWindow() > 8 * 1024, "Send buffer limit should be larger than 8KB.");
ASSERT(static_cast<uint32_t>(GetReceiveWindow().value()) > 8 * 1024,
"Send buffer limit should be larger than 8KB.");
}

EnvoyQuicClientStream::EnvoyQuicClientStream(
Expand Down
3 changes: 2 additions & 1 deletion source/common/quic/envoy_quic_server_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ EnvoyQuicServerStream::EnvoyQuicServerStream(
[this]() { runLowWatermarkCallbacks(); }, [this]() { runHighWatermarkCallbacks(); },
stats, http3_options),
headers_with_underscores_action_(headers_with_underscores_action) {
ASSERT(GetReceiveWindow() > 8 * 1024, "Send buffer limit should be larger than 8KB.");
ASSERT(static_cast<uint32_t>(GetReceiveWindow().value()) > 8 * 1024,
"Send buffer limit should be larger than 8KB.");
}

EnvoyQuicServerStream::EnvoyQuicServerStream(
Expand Down

0 comments on commit 5ca8184

Please sign in to comment.