From ebfbad29c1f733a90e03c8725d3fb382cdcdf826 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 20 Oct 2023 10:30:48 +1100 Subject: [PATCH] Add parentheses around macro arguement 'msec' The is needed to ensure that the multiplication is correctly done. This was reported by Jinmei Tatuya. --- lib/isc/netmgr/uv-compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/isc/netmgr/uv-compat.h b/lib/isc/netmgr/uv-compat.h index 3a103874e4..eea874477a 100644 --- a/lib/isc/netmgr/uv-compat.h +++ b/lib/isc/netmgr/uv-compat.h @@ -72,7 +72,7 @@ uv_tcp_close_reset(uv_tcp_t *handle, uv_close_cb close_cb); #endif #if UV_VERSION_HEX < UV_VERSION(1, 34, 0) -#define uv_sleep(msec) usleep(msec * 1000) +#define uv_sleep(msec) usleep((msec) * 1000) #endif /* UV_VERSION_HEX < UV_VERSION(1, 34, 0) */ #if UV_VERSION_HEX < UV_VERSION(1, 27, 0)