yamt commented on code in PR #14755:
URL: https://github.com/apache/nuttx/pull/14755#discussion_r1839753989


##########
sched/semaphore/sem_holder.c:
##########
@@ -880,7 +880,7 @@ void nxsem_canceled(FAR struct tcb_s *stcb, FAR sem_t *sem)
 {
   /* Check our assumptions */
 
-  DEBUGASSERT(atomic_load(NXSEM_COUNT(sem)) <= 0);
+  DEBUGASSERT((int16_t)atomic_load(NXSEM_COUNT(sem)) <= 0);

Review Comment:
   see
   
https://github.com/apache/nuttx/blob/daab676db97bbf2690e9011cbed1a0d45b2112f6/include/nuttx/lib/stdatomic.h#L75-L81
   
https://github.com/apache/nuttx/blob/daab676db97bbf2690e9011cbed1a0d45b2112f6/include/nuttx/lib/stdatomic.h#L201-L204



-- 
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]

Reply via email to