diff options
author | Karl Williamson <khw@cpan.org> | 2019-10-02 21:02:01 -0600 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2019-12-26 14:02:25 -0700 |
commit | e7e454611a205e99d4b3062def64086586098242 (patch) | |
tree | bc6d71c1b14b8571963a26a67a4fc2d612980480 /win32/win32.c | |
parent | ed77cbc685a61390802d4f2284bfaf6bcb3f6c49 (diff) | |
download | perl-e7e454611a205e99d4b3062def64086586098242.tar.gz |
win32/win32.c: Use inRANGE macro
which is more efficient.
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 |