File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -3417,7 +3417,7 @@ inline ssize_t SocketStream::read(char *ptr, size_t size) {
34173417 if (!is_readable ()) { return -1 ; }
34183418
34193419#ifdef _WIN32
3420- if (size > static_cast <size_t >(std::numeric_limits<int >::max ())) {
3420+ if (size > static_cast <size_t >(( std::numeric_limits<int >::max) ())) {
34213421 return -1 ;
34223422 }
34233423 return recv (sock_, ptr, static_cast <int >(size), 0 );
@@ -3430,7 +3430,7 @@ inline ssize_t SocketStream::write(const char *ptr, size_t size) {
34303430 if (!is_writable ()) { return -1 ; }
34313431
34323432#ifdef _WIN32
3433- if (size > static_cast <size_t >(std::numeric_limits<int >::max ())) {
3433+ if (size > static_cast <size_t >(( std::numeric_limits<int >::max) ())) {
34343434 return -1 ;
34353435 }
34363436 return send (sock_, ptr, static_cast <int >(size), 0 );
You can’t perform that action at this time.
0 commit comments