aboutgitcodelistschat:MatrixIRC
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-02-21 14:15:29 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-21 14:15:29 +0100
commit6836f70961b72899c2d11229ad1428ab16574a60 (patch)
tree0acbc637d3eeb0a8965d5c589cee281b36d50b91
parent1c7bb1c0589e729334f393757bf96543a05b219f (diff)
downloadseitan-6836f70961b72899c2d11229ad1428ab16574a60.tar
seitan-6836f70961b72899c2d11229ad1428ab16574a60.tar.gz
seitan-6836f70961b72899c2d11229ad1428ab16574a60.tar.bz2
seitan-6836f70961b72899c2d11229ad1428ab16574a60.tar.lz
seitan-6836f70961b72899c2d11229ad1428ab16574a60.tar.xz
seitan-6836f70961b72899c2d11229ad1428ab16574a60.tar.zst
seitan-6836f70961b72899c2d11229ad1428ab16574a60.zip
actions: cast data for temporary result to uint16_t
-rw-r--r--actions.c2
1 files changed, 1 insertions, 1 deletions
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;