mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-07 01:42:04 +00:00
[qfcc] Fix vector constructions from scalars
Yet another bit of is_vector/is_nonscalar confusion.
This commit is contained in:
parent
ec436ee65e
commit
bc1b9893a7
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ math_constructor (const type_t *type, const expr_t *params, const expr_t *e)
|
|||
if (is_matrix (type)) {
|
||||
return construct_diagonal (type, param_exprs[0], e);
|
||||
}
|
||||
if (is_vector (type)) {
|
||||
if (is_nonscalar (type)) {
|
||||
return construct_broadcast (type, param_exprs[0], e);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue