Skip to content

Commit 8adf304

Browse files
committed
resolve windows build errors
1 parent 51a9e5a commit 8adf304

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

http/http_compress.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,14 +1666,14 @@ bool NegotiateWebSocketCompression(
16661666
negotiated->client_max_window_bits = 15;
16671667
if (offer.client_max_window_bits_requested) {
16681668
negotiated->client_max_window_bits =
1669-
std::min(NormalizeWindowBits(local_options.client_max_window_bits),
1670-
NormalizeWindowBits(offer.client_max_window_bits));
1669+
(std::min)(NormalizeWindowBits(local_options.client_max_window_bits),
1670+
NormalizeWindowBits(offer.client_max_window_bits));
16711671
}
16721672
negotiated->server_max_window_bits = NormalizeWindowBits(local_options.server_max_window_bits);
16731673
if (offer.server_max_window_bits_requested) {
16741674
negotiated->server_max_window_bits =
1675-
std::min(negotiated->server_max_window_bits,
1676-
NormalizeWindowBits(offer.server_max_window_bits));
1675+
(std::min)(negotiated->server_max_window_bits,
1676+
NormalizeWindowBits(offer.server_max_window_bits));
16771677
}
16781678

16791679
std::string header = "permessage-deflate";

0 commit comments

Comments
 (0)