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 0bf5e0f..9816e2e 100644
--- a/infer.c
+++ b/infer.c
@@ -18,7 +18,7 @@ static bool infer_from_expr(Typer *tr, Expression *match, Value to, Type *to_typ
/* an identifier! maybe it's one of idents... */
arr_foreach(idents, Identifier, ident) {
if (ident_eq_string(*ident, match->ident_str)) {
- long idx = ident - idents;
+ long idx = (long)(ident - idents);
types[idx] = *to_type;
vals[idx] = to;
break;