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/datatype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/datatype.c') diff --git a/src/datatype.c b/src/datatype.c index 0e745833..ac9f2af1 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -118,7 +118,7 @@ struct error_record *symbol_parse(const struct expr *sym, { const struct datatype *dtype = sym->dtype; - assert(sym->ops->type == EXPR_SYMBOL); + assert(sym->etype == EXPR_SYMBOL); if (dtype == NULL) return error(&sym->location, "No symbol type information"); -- cgit v1.2.3