mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Fix a missed const type_t
This commit is contained in:
parent
b9aad99381
commit
6e8c98433a
3 changed files with 3 additions and 3 deletions
|
@ -342,7 +342,7 @@ typedef struct expr_s {
|
|||
ex_return_t retrn; ///< return expr params
|
||||
ex_adjstk_t adjstk; ///< stack adjust param
|
||||
ex_with_t with; ///< with expr param
|
||||
type_t *nil; ///< type for nil if known
|
||||
const type_t *nil; ///< type for nil if known
|
||||
ex_horizontal_t hop; ///< horizontal vector operation
|
||||
ex_swizzle_t swizzle; ///< vector swizzle operation
|
||||
ex_extend_t extend; ///< vector extend operation
|
||||
|
|
|
@ -1596,7 +1596,7 @@ convert_nil (const expr_t *e, const type_t *t)
|
|||
{
|
||||
auto nil = expr_file_line (new_expr (), e);
|
||||
nil->type = ex_nil;
|
||||
nil->nil = (type_t *) t;//FIXME cast
|
||||
nil->nil = t;
|
||||
return nil;
|
||||
}
|
||||
|
||||
|
|
|
@ -1967,7 +1967,7 @@ expr_vector_e (sblock_t *sblock, const expr_t *e, operand_t **op)
|
|||
static sblock_t *
|
||||
expr_nil (sblock_t *sblock, const expr_t *e, operand_t **op)
|
||||
{
|
||||
type_t *nil = e->nil;
|
||||
const type_t *nil = e->nil;
|
||||
const expr_t *size_expr;
|
||||
size_t nil_size;
|
||||
operand_t *zero;
|
||||
|
|
Loading…
Reference in a new issue