From cf3d58467809690791835de661b46d82d2d1d08f Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Thu, 21 Nov 2019 09:08:43 +0100 Subject: [PATCH] sys/cb_mux/cb_mux.c: fix cpp.check shiftTooManyBitsSigned --- sys/cb_mux/cb_mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cb_mux/cb_mux.c b/sys/cb_mux/cb_mux.c index de7570d85e..e39885138b 100644 --- a/sys/cb_mux/cb_mux.c +++ b/sys/cb_mux/cb_mux.c @@ -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; } }