Add parentheses around macro arguement 'msec'

The is needed to ensure that the multiplication is correctly done.
This was reported by Jinmei Tatuya.
This commit is contained in:
Mark Andrews
2023-10-20 10:30:48 +11:00
parent b0f3a440f1
commit ebfbad29c1

View File

@@ -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)