mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
[qfcc] Don't check parameter size for arrays
Arrays are passed as a pointer to the first element, so are always valid parameters. Fixes a bogus "formal parameter N is too large to be passed by value" error.
This commit is contained in:
parent
630dde6df7
commit
af4c120d3d
1 changed files with 1 additions and 1 deletions
|
@ -2081,7 +2081,7 @@ build_function_call (expr_t *fexpr, const type_t *ftype, expr_t *params)
|
|||
err = error (e, "type of formal parameter %d is incomplete",
|
||||
i + 1);
|
||||
}
|
||||
if (value_too_large (t)) {
|
||||
if (!is_array (t) && value_too_large (t)) {
|
||||
err = error (e, "formal parameter %d is too large to be passed by"
|
||||
" value", i + 1);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue