From 6836f70961b72899c2d11229ad1428ab16574a60 Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Tue, 21 Feb 2023 14:15:29 +0100 Subject: actions: cast data for temporary result to uint16_t --- actions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions.c b/actions.c index d4096b2..6a7f55c 100644 --- a/actions.c +++ b/actions.c @@ -195,7 +195,7 @@ int do_actions(void *data, struct action actions[], unsigned int n_actions, int * reference */ if (actions[i].call.has_ret) { - memcpy(data + actions[i].call.ret_off, + memcpy((uint16_t *)data + actions[i].call.ret_off, &c.ret, sizeof(c.ret)); } break; -- cgit v1.2.3