summaryrefslogtreecommitdiff
path: root/identifiers.c
diff options
context:
space:
mode:
Diffstat (limited to 'identifiers.c')
-rw-r--r--identifiers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/identifiers.c b/identifiers.c
index 3cce0d1..cc9315f 100644
--- a/identifiers.c
+++ b/identifiers.c
@@ -193,9 +193,9 @@ static Type *ident_typeval(Identifier i) {
IdentDecl *idecl = ident_decl(i);
if (!idecl) return NULL;
Declaration *d = idecl->decl;
- if (!(d->flags & DECL_FLAG_CONST))
+ if (!(d->flags & DECL_IS_CONST))
return NULL;
- assert(d->flags & DECL_FLAG_FOUND_TYPE);
+ assert(d->flags & DECL_FOUND_TYPE);
if (d->type.kind == TYPE_TUPLE) {
size_t idx;
for (idx = 0; idx < arr_len(d->idents); idx++) {