[WRAPPERHELPER] Fixed a small issue with the parser

This commit is contained in:
ptitSeb committed 2025-04-27 14:07:01 +02:00
1 parent 4add55aa45
commit 02423c2d7d
1 file changed
+1 -1
+1 -1
View File
@@ -900,7 +900,7 @@ int type_copy_into(type_t *dest, const type_t *ref) {
if (ref->val.fun.nargs != (size_t)-1) {
if (!ref->val.fun.args) {
dest->typ = TYPE_BUILTIN;
return 0;
return 1;
}
type_t **args = malloc(sizeof *args * ref->val.fun.nargs);
if (!args) {