PR #3998 fixes an error handling issue in poll_event_wait(). This new change
fixes a minor code style problem in that PR, the condition in a ternary wasn't
enclosed in parentheses.
if (ret == -1) {
#ifdef HOST_WIN32
- *werror = errno > 0 && errno < WSABASEERR ? errno + WSABASEERR : errno;
+ *werror = (errno > 0 && errno < WSABASEERR) ? errno + WSABASEERR : errno;
#else
*werror = errno_to_WSA (errno, __func__);
#endif
if (ret == -1) {
#ifdef HOST_WIN32
- *werror = errno > 0 && errno < WSABASEERR ? errno + WSABASEERR : errno;
+ *werror = (errno > 0 && errno < WSABASEERR) ? errno + WSABASEERR : errno;
#else
*werror = errno_to_WSA (errno, __func__);
#endif