Skip to content

Commit 82fa9b6

Browse files
committed
🐛 Fixing windows max macro
1 parent ba763a5 commit 82fa9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io_engine_iocp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ namespace asyncpp::io::detail {
414414

415415
void io_engine_iocp::socket_multicast_set_ttl(socket_handle_t socket, size_t ttl) {
416416
auto type = get_handle_type(socket);
417-
if (ttl > std::numeric_limits<int>::max()) throw std::invalid_argument("ttl value out of range");
417+
if (ttl > (std::numeric_limits<int>::max)()) throw std::invalid_argument("ttl value out of range");
418418
int ittl = ttl;
419419
if (type == address_type::ipv4) {
420420
auto res = setsockopt(socket, IPPROTO_IP, IP_MULTICAST_TTL, reinterpret_cast<const char*>(&ittl), sizeof(ittl));

0 commit comments

Comments
 (0)