# HG changeset patch # User Tassilo Philipp # Date 1650724127 -7200 # Node ID 804df3409b51e2dc8b9bab1459637ae0312cf53d # Parent c0df40c888ac0e5215f3042c0ba689b6b8f724c9 - callback fix for non-trivial aggregate return values: allowing access to caller-reserved space user is supposed to copy non-triv object into diff -r c0df40c888ac -r 804df3409b51 dyncallback/dyncall_args_x64.c --- a/dyncallback/dyncall_args_x64.c Sat Apr 23 15:36:11 2022 +0200 +++ b/dyncallback/dyncall_args_x64.c Sat Apr 23 16:28:47 2022 +0200 @@ -144,8 +144,8 @@ DCaggr *ag = *(args->aggrs++); if(!ag) { - /* non-trivial aggr */ - result->p = ret; + /* non-trivial aggr: all we can do is to provide the ptr to the output space, user has to make copy */ + result->p = args->reg_data.i[0]; return; }