mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
[qfcc] Strip alias info off function params
For now. This fixes many problems but does lose type aliasing info from function parameters.
This commit is contained in:
parent
da39e675b8
commit
69037fe5eb
1 changed files with 3 additions and 1 deletions
|
@ -170,6 +170,7 @@ parse_params (type_t *type, param_t *parms)
|
|||
{
|
||||
param_t *p;
|
||||
type_t *new;
|
||||
type_t *ptype;
|
||||
int count = 0;
|
||||
|
||||
if (type && is_class (type)) {
|
||||
|
@ -201,7 +202,8 @@ parse_params (type_t *type, param_t *parms)
|
|||
error (0, "cannot use an object as a parameter (forgot *?)");
|
||||
p->type = &type_id;
|
||||
}
|
||||
new->t.func.param_types[new->t.func.num_params] = p->type;
|
||||
ptype = (type_t *) unalias_type (p->type); //FIXME cast
|
||||
new->t.func.param_types[new->t.func.num_params] = ptype;
|
||||
new->t.func.num_params++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue