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:
parent
061b494348
commit
cf3d584678
@ -105,7 +105,7 @@ cb_mux_cbid_t cb_mux_find_free_id(cb_mux_t *head)
|
|||||||
|
|
||||||
/* Find which ID in block was free */
|
/* Find which ID in block was free */
|
||||||
for (num = 0; num < 32; num++) {
|
for (num = 0; num < 32; num++) {
|
||||||
if (~free & (1 << num)) {
|
if (~free & ((uint32_t)1 << num)) {
|
||||||
return block | num;
|
return block | num;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user