diff --git a/newlib/libc/sys/rtems/include/sys/cpuset.h b/newlib/libc/sys/rtems/include/sys/cpuset.h index 7779f0639..e46090b8a 100644 --- a/newlib/libc/sys/rtems/include/sys/cpuset.h +++ b/newlib/libc/sys/rtems/include/sys/cpuset.h @@ -205,7 +205,7 @@ static __inline int CPU_COUNT(const cpu_set_t *set) static __inline int CPU_EQUAL_S(size_t setsize, const cpu_set_t *set1, const cpu_set_t *set2) { - return !BIT_CMP(_cpu_set_bits(setsize), set1, set2); + return BIT_CMP(_cpu_set_bits(setsize), set1, set2) == 0; } static __inline int CPU_EQUAL(const cpu_set_t *set1, const cpu_set_t *set2)