diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-05-01 15:27:21 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-05-01 15:27:21 +0100 |
| commit | 750d7256fc16a46d88815e6de18a79a4ce7d6912 (patch) | |
| tree | 8ee1bf3ef267781ba10f321f86d4e483f2260916 | |
| parent | fae5df2ed8663d52c691802a7c11105ea28267ed (diff) | |
Unary expression for vector (fix)
| -rw-r--r-- | src/check_expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.c b/src/check_expr.c index 5491e4f6c..47ebae154 100644 --- a/src/check_expr.c +++ b/src/check_expr.c @@ -2087,7 +2087,7 @@ void check_unary_expr(Checker *c, Operand *o, Token op, AstNode *node) { return; } - if (o->mode == Addressing_Constant) { + if (o->mode == Addressing_Constant && !is_type_vector(o->type)) { Type *type = base_type(o->type); if (!is_type_constant_type(o->type)) { gbString xt = type_to_string(o->type); |