1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/cb_mux/cb_mux.c: fix cpp.check shiftTooManyBitsSigned

This commit is contained in:
Francisco Molina 2019-11-21 09:08:43 +01:00
parent 061b494348
commit cf3d584678

View File

@ -105,7 +105,7 @@ cb_mux_cbid_t cb_mux_find_free_id(cb_mux_t *head)
/* Find which ID in block was free */
for (num = 0; num < 32; num++) {
if (~free & (1 << num)) {
if (~free & ((uint32_t)1 << num)) {
return block | num;
}
}