mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
fix a seg on return type mismatch
This commit is contained in:
parent
4b744b6be5
commit
d2c266775c
1 changed files with 1 additions and 1 deletions
|
@ -958,7 +958,7 @@ return_expr (function_t *f, expr_t *e)
|
|||
}
|
||||
if (f->def->type->aux_type != t)
|
||||
return error (e, "type mismatch for return value of %s",
|
||||
e->e.def->name);
|
||||
f->def->name);
|
||||
}
|
||||
return new_unary_expr ('r', e);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue