[WRAPPERHELPER] Fixed 02423c2 (#2584)

This commit is contained in:
rajdakin 2025-04-28 20:33:47 +02:00 committed by GitHub
parent f72d43b77e
commit 1aa29ec1d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -899,8 +899,7 @@ int type_copy_into(type_t *dest, const type_t *ref) {
++ref->val.fun.ret->nrefs;
if (ref->val.fun.nargs != (size_t)-1) {
if (!ref->val.fun.args) {
dest->typ = TYPE_BUILTIN;
return 1;
break;
}
type_t **args = malloc(sizeof *args * ref->val.fun.nargs);
if (!args) {