aboutsummaryrefslogtreecommitdiff
path: root/src/checker/expr.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2016-12-18 16:17:45 +0000
committerGinger Bill <bill@gingerbill.org>2016-12-18 16:17:45 +0000
commit062a2c63e16c31cd68f758ec8946b9cd3bfe4d34 (patch)
tree00108d1ce88c3379582a36a80f6c537bc1dd53e3 /src/checker/expr.c
parentb957365b0d6c1b49362e3ea1ed415c8646319ec5 (diff)
Very minor style changes
Diffstat (limited to 'src/checker/expr.c')
-rw-r--r--src/checker/expr.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/checker/expr.c b/src/checker/expr.c
index 08d5ac3ff..1ca4b6e33 100644
--- a/src/checker/expr.c
+++ b/src/checker/expr.c
@@ -4455,10 +4455,9 @@ void check_expr_or_type(Checker *c, Operand *o, AstNode *e) {
check_not_tuple(c, o);
if (o->mode == Addressing_NoValue) {
gbString str = expr_to_string(o->expr);
- error_node(o->expr,
- "`%s` used as value or type", str);
- o->mode = Addressing_Invalid;
+ error_node(o->expr, "`%s` used as value or type", str);
gb_string_free(str);
+ o->mode = Addressing_Invalid;
}
}