summaryrefslogtreecommitdiff
path: root/src/lib/eolian/database_expr_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eolian/database_expr_api.c')
-rw-r--r--src/lib/eolian/database_expr_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/eolian/database_expr_api.c b/src/lib/eolian/database_expr_api.c
index 9e8e1f6..adf5734 100644
--- a/src/lib/eolian/database_expr_api.c
+++ b/src/lib/eolian/database_expr_api.c
@@ -29,12 +29,12 @@ _eval_type(const Eolian_Unit *unit, const Eolian_Expression *expr,
29 return database_expr_eval(unit, expr, EOLIAN_MASK_NULL); 29 return database_expr_eval(unit, expr, EOLIAN_MASK_NULL);
30 case EOLIAN_TYPE_REGULAR: 30 case EOLIAN_TYPE_REGULAR:
31 { 31 {
32 if (database_type_is_ownable(type)) 32 if (database_type_is_ownable(unit, type))
33 return database_expr_eval(unit, expr, EOLIAN_MASK_NULL); 33 return database_expr_eval(unit, expr, EOLIAN_MASK_NULL);
34 int kw = eo_lexer_keyword_str_to_id(type->name); 34 int kw = eo_lexer_keyword_str_to_id(type->name);
35 if (!kw || kw < KW_byte || kw >= KW_void) 35 if (!kw || kw < KW_byte || kw >= KW_void)
36 { 36 {
37 const Eolian_Typedecl *base = eolian_type_typedecl_get(type); 37 const Eolian_Typedecl *base = eolian_type_typedecl_get(unit, type);
38 if (!base) 38 if (!base)
39 return err; 39 return err;
40 if (base->type == EOLIAN_TYPEDECL_ALIAS) 40 if (base->type == EOLIAN_TYPEDECL_ALIAS)