summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/evaluate.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/evaluate.c b/src/evaluate.c
index 79add5ee..878efacd 100644
--- a/src/evaluate.c
+++ b/src/evaluate.c
@@ -987,13 +987,6 @@ static int expr_evaluate_concat(struct eval_ctx *ctx, struct expr **expr)
"expecting %s",
dtype->desc);
- if (dtype == NULL && i->dtype->size == 0)
- return expr_binary_error(ctx->msgs, i, *expr,
- "can not use variable sized "
- "data types (%s) in concat "
- "expressions",
- i->dtype->name);
-
if (dtype == NULL)
tmp = datatype_lookup(TYPE_INVALID);
else
@@ -1004,6 +997,13 @@ static int expr_evaluate_concat(struct eval_ctx *ctx, struct expr **expr)
return -1;
flags &= i->flags;
+ if (dtype == NULL && i->dtype->size == 0)
+ return expr_binary_error(ctx->msgs, i, *expr,
+ "can not use variable sized "
+ "data types (%s) in concat "
+ "expressions",
+ i->dtype->name);
+
ntype = concat_subtype_add(ntype, i->dtype->type);
}