From a08a6ed5cdd0c8859edadd7b3a9ab6f796c1a450 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Fri, 24 May 2019 10:07:11 +0200 Subject: [PATCH] :shirt: Some clean --- ast | 2 +- src/emit/emit.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ast b/ast index 8072d3e7..66353d14 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 8072d3e7711680521b71fee4f8a9d41363a9f1ce +Subproject commit 66353d14748fdb971a9414370918edaf12cb0245 diff --git a/src/emit/emit.c b/src/emit/emit.c index b1158112..4b9b64e7 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -765,7 +765,7 @@ ANN m_bool traverse_dot_tmpl(const Emitter emit, const struct dottmpl_ *dt) { static inline m_bool push_func_code(const Emitter emit, const Func f) { if(GET_FLAG(f, template) && f->value_ref->owner_class) { const Instr instr = (Instr)vector_back(&emit->code->instr); - assert(instr->opcode == eDotTmplVal); + assert(instr->opcode == eDotTmplVal); size_t len = strlen(f->name); size_t sz = len - strlen(f->value_ref->owner_class->name); char c[sz + 1]; @@ -1510,7 +1510,7 @@ ANN static inline Instr get_variadic(const Emitter emit) { } ANN static void emit_vararg_end(const Emitter emit, const m_uint offset) { - const Instr instr = emit_add_instr(emit, VarargEnd), + const Instr instr = emit_add_instr(emit, VarargEnd), variadic = get_variadic(emit); instr->m_val = offset; instr->m_val2 = variadic->m_val2; -- 2.43.0