diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c index a1b5f1bab2..874f27bdbd 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2658,7 +2658,7 @@ win32_strerror(int e) * additionally map them to corresponding Windows (sockets) error codes * first to avoid getting the wrong system message. */ - else if (e >= EADDRINUSE && e <= EWOULDBLOCK) { + else if (inRANGE(e, EADDRINUSE, EWOULDBLOCK)) { e = convert_errno_to_wsa_error(e); } #endif |