From e7e454611a205e99d4b3062def64086586098242 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Wed, 2 Oct 2019 21:02:01 -0600 Subject: win32/win32.c: Use inRANGE macro which is more efficient. --- win32/win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32') 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 -- cgit v1.2.1