Skip to content

Commit 9a6ad67

Browse files
committed
fix: implicit conversion error
Signed-off-by: krishna2803 <[email protected]>
1 parent 4e33001 commit 9a6ad67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/sched/linux/sched_getcpuisset.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LLVM_LIBC_FUNCTION(int, __sched_getcpuisset,
2424
const size_t bit_position = static_cast<size_t>(cpu) % NCPUBITS;
2525

2626
const unsigned long mask = 1UL << bit_position;
27-
return set->__mask[element_index] & mask;
27+
return (set->__mask[element_index] & mask) != 0;
2828
}
2929

3030
return 0;

0 commit comments

Comments
 (0)