From 808fe65bcfef6758fc900beac02e619f8996a201 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 13 May 2021 23:30:36 +0200 Subject: [PATCH] :art: Use bool in frame_local --- src/emit/emit.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 0a6737ae..a1522d3a 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -29,7 +29,7 @@ typedef struct Local_ { Type type; m_uint offset; - uint skip; + bool skip; } Local; static inline void emit_pop(const Emitter emit, const m_uint scope) { env_pop(emit->env, scope); } @@ -75,7 +75,7 @@ ANN static Local* new_local(MemPool p, const Type type) { return local; } -ANN static m_uint frame_local(MemPool p, Frame* frame, const Type t, const uint skip) { +ANN static m_uint frame_local(MemPool p, Frame* frame, const Type t, const bool skip) { Local* local = new_local(p, t); local->offset = frame->curr_offset; local->skip = skip; @@ -281,11 +281,11 @@ ANN m_uint emit_code_offset(const Emitter emit) { } ANN m_uint emit_local(const Emitter emit, const Type t) { - return frame_local(emit->gwion->mp, emit->code->frame, t, 0); + return frame_local(emit->gwion->mp, emit->code->frame, t, false); } ANN m_uint emit_localn(const Emitter emit, const Type t) { - return frame_local(emit->gwion->mp, emit->code->frame, t, 1); + return frame_local(emit->gwion->mp, emit->code->frame, t, true); } ANN void emit_ext_ctor(const Emitter emit, const Type t); -- 2.43.0