From 51a9057d9e14645865e880c0735de3c4e827e5c9 Mon Sep 17 00:00:00 2001 From: term_est <62337595+term-est@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:21:07 +0300 Subject: [PATCH] Fix possible conversion errors by using __builtin_ffsll instead of __builtin_ffs Signed-off-by: term_est <62337595+term-est@users.noreply.github.com> --- components/xtensa/include/xt_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/xtensa/include/xt_utils.h b/components/xtensa/include/xt_utils.h index 80374fb08a..4cb32a29a3 100644 --- a/components/xtensa/include/xt_utils.h +++ b/components/xtensa/include/xt_utils.h @@ -152,7 +152,7 @@ FORCE_INLINE_ATTR void xt_utils_set_watchpoint(int wp_num, { // Initialize DBREAKC bits (see Table 4–143 or isa_rm.pdf) uint32_t dbreakc_reg = 0x3F; - dbreakc_reg = dbreakc_reg << (__builtin_ffs(size) - 1); + dbreakc_reg = dbreakc_reg << (__builtin_ffsll(size) - 1); dbreakc_reg = dbreakc_reg & 0x3F; if (on_read) { dbreakc_reg |= BIT(30);