summaryrefslogtreecommitdiffstats
path: root/src/datatype.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2019-02-08 17:02:22 +0100
committerFlorian Westphal <fw@strlen.de>2019-02-08 21:22:51 +0100
commit72931553828af0ce85f0562b9ff8ec7f4d28e050 (patch)
tree6fe42e2a99febc3ff783f63b8219de81215cf0d3 /src/datatype.c
parent2cc91e6198e7ee8b9d0f8727c67a849fec393cd0 (diff)
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 <fw@strlen.de>
Diffstat (limited to 'src/datatype.c')
-rw-r--r--src/datatype.c2
1 files changed, 1 insertions, 1 deletions
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");