From: fennecdjay Date: Tue, 1 Oct 2019 21:23:43 +0000 (+0200) Subject: :art: Try this X-Git-Tag: nightly~2198^2~197 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=37d2331e6cfa021d5be99ea2a226f6438c293e43;p=gwion.git :art: Try this --- diff --git a/src/emit/emit.c b/src/emit/emit.c index 7f8aabf7..5e778d7e 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -1102,7 +1102,7 @@ ANN static m_bool emit_exp_unary(const Emitter emit, const Exp_Unary* unary) { ANN static m_bool emit_implicit_cast(const Emitter emit, const restrict Exp from, const restrict Type to) { - const struct Implicit imp = { from, to, from->pos }; + const struct Implicit imp = { .e=from, .t=to }; struct Op_Import opi = { .op=insert_symbol("@implicit"), .lhs=from->type, .rhs=to, .data=(m_uint)&imp }; return op_emit_bool(emit, &opi); } diff --git a/src/parse/check.c b/src/parse/check.c index fbb4fc07..ff571a2f 100644 --- a/src/parse/check.c +++ b/src/parse/check.c @@ -30,7 +30,7 @@ ANN m_bool check_class_def(const Env env, const Class_Def class_def); ANN static m_bool check_implicit(const Env env, const m_str str, const Exp e, const Type t) { - struct Implicit imp = { .e=e, .t=t, .pos=e->pos }; + struct Implicit imp = { .e=e, .t=t }; struct Op_Import opi = { .op=insert_symbol(str), .lhs=e->type, .rhs=t, .data=(uintptr_t)&imp, .pos=e->pos }; CHECK_OB(op_check(env, &opi))