mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Fix matrix indexing for ruamoko
The change to exclude matrices from is_nonscalar broke indexing of the columns.
This commit is contained in:
parent
639818cca5
commit
a5366bf7f9
1 changed files with 1 additions and 1 deletions
|
@ -2430,7 +2430,7 @@ array_expr (const expr_t *array, const expr_t *index)
|
||||||
auto alias = new_offset_alias_expr (ele_type, array, 0);
|
auto alias = new_offset_alias_expr (ele_type, array, 0);
|
||||||
ptr = new_address_expr (ele_type, alias, 0);
|
ptr = new_address_expr (ele_type, alias, 0);
|
||||||
}
|
}
|
||||||
} else if (is_nonscalar (array_type)) {
|
} else if (is_nonscalar (array_type) || is_matrix (array_type)) {
|
||||||
auto alias = new_offset_alias_expr (ele_type, array, 0);
|
auto alias = new_offset_alias_expr (ele_type, array, 0);
|
||||||
ptr = new_address_expr (ele_type, alias, 0);
|
ptr = new_address_expr (ele_type, alias, 0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue