Skip to content

Commit

Permalink
[WRAPPERHELPER] Transform from function to data if needed (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdakin authored Nov 28, 2024
1 parent b2dc460 commit fd613de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrapperhelper/src/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ int solve_request_simple(request_t *req, type_t *emu_typ, type_t *target_typ, kh
int needs_D = 0, needs_my = req->def.dat.has_size && (req->def.rty == RQT_DATAM);
if (is_simple_type_simple(emu_typ, &needs_D, &needs_my, conv_map)) {
// TODO: Hmm...
req->val.rty = needs_my ? RQT_DATAM : req->def.rty;
req->val.rty = needs_my ? RQT_DATAM : (IS_RQT_FUNCTION(req->def.rty) ? RQT_DATA : req->def.rty);
req->val.dat.has_size = 1;
req->val.dat.sz = emu_typ->szinfo.size;
req->has_val = 1;
Expand Down Expand Up @@ -1774,7 +1774,7 @@ int solve_request(request_t *req, type_t *emu_typ, type_t *target_typ, khash_t(c
needs_my = 1;
/* FALLTHROUGH */
case SAFE_OK:
req->val.rty = needs_my ? RQT_DATAM : req->def.rty;
req->val.rty = needs_my ? RQT_DATAM : (IS_RQT_FUNCTION(req->def.rty) ? RQT_DATA : req->def.rty);
req->val.dat.has_size = 1;
req->val.dat.sz = emu_typ->szinfo.size;
req->has_val = 1;
Expand Down

0 comments on commit fd613de

Please sign in to comment.