summaryrefslogtreecommitdiff
path: root/infer.c
diff options
context:
space:
mode:
Diffstat (limited to 'infer.c')
-rw-r--r--infer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/infer.c b/infer.c
index e131583..8367dce 100644
--- a/infer.c
+++ b/infer.c
@@ -17,7 +17,7 @@ static bool infer_from_expr(Typer *tr, Expression *match, Value to, Type *to_typ
case EXPR_IDENT:
/* an identifier! maybe it's one of idents... */
arr_foreach(idents, Identifier, ident) {
- if (*ident == match->ident) {
+ if (ident_eq_string(*ident, match->ident_str)) {
long idx = ident - idents;
types[idx] = *to_type;
vals[idx] = to;