Skip to content

Commit

Permalink
fix implicit convert to bool compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ztao authored May 20, 2022
1 parent 3bbaaa1 commit 4ca8633
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,11 @@ class HttpOperation
{
if (for_recv)
{
res = FD_ISSET(sockfd, &infd);
res = (0 != FD_ISSET(sockfd, &infd));
}
else
{
res = FD_ISSET(sockfd, &outfd);
res = (0 != FD_ISSET(sockfd, &outfd));
}
}

Expand All @@ -508,11 +508,11 @@ class HttpOperation
{
if (for_recv)
{
res = fds[0].revents & POLLIN;
res = (0 != (fds[0].revents & POLLIN));
}
else
{
res = fds[0].revents & POLLOUT;
res = (0 != (fds[0].revents & POLLOUT));
}
}

Expand Down

0 comments on commit 4ca8633

Please sign in to comment.