aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-05-01 15:27:21 +0100
committerGinger Bill <bill@gingerbill.org>2017-05-01 15:27:21 +0100
commit750d7256fc16a46d88815e6de18a79a4ce7d6912 (patch)
tree8ee1bf3ef267781ba10f321f86d4e483f2260916 /src/check_expr.c
parentfae5df2ed8663d52c691802a7c11105ea28267ed (diff)
Unary expression for vector (fix)
Diffstat (limited to 'src/check_expr.c')
-rw-r--r--src/check_expr.c2
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);