summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2019-10-02 21:02:01 -0600
committerKarl Williamson <khw@cpan.org>2019-12-26 14:02:25 -0700
commite7e454611a205e99d4b3062def64086586098242 (patch)
treebc6d71c1b14b8571963a26a67a4fc2d612980480 /win32/win32.c
parented77cbc685a61390802d4f2284bfaf6bcb3f6c49 (diff)
downloadperl-e7e454611a205e99d4b3062def64086586098242.tar.gz
win32/win32.c: Use inRANGE macro
which is more efficient.
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
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