anchao commented on code in PR #17359:
URL: https://github.com/apache/nuttx/pull/17359#discussion_r2548948288
##########
libs/libc/signal/sig_ismember.c:
##########
@@ -68,7 +68,7 @@ int nxsig_ismember(FAR const sigset_t *set, int signo)
{
/* Check if the signal is in the set */
- return ((set->_elem[_SIGSET_NDX(signo)] & _SIGNO2SET(signo)) != 0);
+ return (set->_elem[_SIGSET_NDX(signo)] & _SIGNO2SET(signo)) ? 1 : 0;
Review Comment:
```suggestion
return !!(set->_elem[_SIGSET_NDX(signo)] & _SIGNO2SET(signo));
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]