diff --git a/src/internal/sio_client_impl.cpp b/src/internal/sio_client_impl.cpp index 12d4c78a..84757f4a 100644 --- a/src/internal/sio_client_impl.cpp +++ b/src/internal/sio_client_impl.cpp @@ -328,7 +328,7 @@ namespace sio unsigned client_impl::next_delay() const { //no jitter, fixed power root. - return min(static_cast(m_reconn_delay * pow(1.5,m_reconn_made)),m_reconn_delay_max); + return static_cast(min(m_reconn_delay * pow(1.5,m_reconn_made),m_reconn_delay_max)); } socket::ptr client_impl::get_socket_locked(string const& nsp)