From 72931553828af0ce85f0562b9ff8ec7f4d28e050 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Fri, 8 Feb 2019 17:02:22 +0100 Subject: src: expr: add expression etype Temporary kludge to remove all the expr->ops->type == ... patterns. Followup patch will remove expr->ops, and make expr_ops() lookup the correct expr_ops struct instead to reduce struct expr size. Signed-off-by: Florian Westphal --- src/mergesort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mergesort.c') diff --git a/src/mergesort.c b/src/mergesort.c index f2e38bc2..649b7806 100644 --- a/src/mergesort.c +++ b/src/mergesort.c @@ -34,7 +34,7 @@ static int concat_expr_msort_cmp(const struct expr *e1, const struct expr *e2) static int expr_msort_cmp(const struct expr *e1, const struct expr *e2) { - switch (e1->ops->type) { + switch (e1->etype) { case EXPR_SET_ELEM: return expr_msort_cmp(e1->key, e2->key); case EXPR_VALUE: -- cgit v1.2.3