summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/expression.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/expression.h b/include/expression.h
index 8a4cf5b1..2450bc90 100644
--- a/include/expression.h
+++ b/include/expression.h
@@ -220,6 +220,7 @@ struct expr {
const struct datatype *dtype;
enum byteorder byteorder;
+ enum expr_types etype:8;
unsigned int len;
const struct expr_ops *ops;
@@ -411,7 +412,7 @@ const char *expr_name(const struct expr *e);
static inline void symbol_expr_set_type(struct expr *expr,
const struct datatype *dtype)
{
- if (expr->ops->type == EXPR_SYMBOL)
+ if (expr->etype == EXPR_SYMBOL)
expr->dtype = dtype;
}