From b59607bbcf6ca872e190dfcd9abf8fc5c0f64359 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sat, 30 Dec 2023 09:01:21 +0100 Subject: [PATCH] debugger: explicit cast for pointer arithmetic operation --- src/modules/debugger/debugger_mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/debugger/debugger_mod.c b/src/modules/debugger/debugger_mod.c index b6248644d65..c2d2dda79af 100644 --- a/src/modules/debugger/debugger_mod.c +++ b/src/modules/debugger/debugger_mod.c @@ -324,7 +324,7 @@ static struct action *dbg_fixup_get_action(void **param, int param_no) action_u_t *au; /* param points to au->u.string, get pointer to au */ au = ksr_container_of(param, action_u_t, u.string); - au = au - 1 - param_no; + au = (action_u_t *)au - 1 - param_no; /* au points to ac->val, get pointer to ac */ ac = ksr_container_of(au, cfg_action_t, val); return ac;