Fix std::max compilation error on Windows

Fixes #654
This commit is contained in:
Charles Cabergs 2025-04-14 17:01:45 +02:00 committed by GitHub
parent 21c83ca0c3
commit a6035caa65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2753,7 +2753,7 @@ template<typename T = no_user_data> class poller_t
{
int rc = zmq_poller_size(const_cast<void *>(poller_ptr.get()));
ZMQ_ASSERT(rc >= 0);
return static_cast<size_t>(std::max(rc, 0));
return static_cast<size_t>((std::max)(rc, 0));
}
#endif