mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-19 16:01:15 +00:00
[qfcc] Copy parameter qualifiers when copying type
Fixes a segfault for some functions (generics?) cause by the new parameter qualifiers.
This commit is contained in:
parent
55a5782a95
commit
13d38622f7
1 changed files with 2 additions and 0 deletions
|
@ -608,8 +608,10 @@ find_type (const type_t *type)
|
|||
}
|
||||
if (num_params) {
|
||||
check->func.param_types = malloc (sizeof (type_t *) * num_params);
|
||||
check->func.param_quals = malloc (sizeof (param_qual_t)*num_params);
|
||||
for (int i = 0; i < num_params; i++) {
|
||||
check->func.param_types[i] = t->func.param_types[i];
|
||||
check->func.param_quals[i] = t->func.param_quals[i];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue