mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-04-11 20:03:11 +00:00
[qfcc] Return correct type for non-scalar unary ops
At least, for non-constants. Constants are still broken (badly, actually).
This commit is contained in:
parent
295cc0e0b2
commit
8ac4716f67
1 changed files with 4 additions and 0 deletions
|
@ -492,6 +492,10 @@ unary_expr (int op, const expr_t *e)
|
|||
auto result_type = t;
|
||||
if (unary_type->result_type) {
|
||||
result_type = unary_type->result_type;
|
||||
if (!is_handle (t)) {
|
||||
result_type = matrix_type (result_type,
|
||||
type_cols (t), type_rows (t));
|
||||
}
|
||||
}
|
||||
if (result_type == &type_bool) {
|
||||
//FIXME support bool properly
|
||||
|
|
Loading…
Reference in a new issue