summaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index 2d6f6d4..de78d56 100644
--- a/types.c
+++ b/types.c
@@ -1967,7 +1967,7 @@ static bool types_expr(Typer *tr, Expression *e) {
if (rhs->kind == EXPR_IDENT) {
/* maybe accessing a field? */
arr_foreach(struct_type->struc->fields, Field, f) {
- if (f->name == rhs->ident) {
+ if (ident_eq(f->name, rhs->ident)) {
is_field = true;
*t = f->type;
e->binary.dot.field = f;