From 02e9fce5ab40b0120b412cb1e60f758f6701c4fd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 7 May 2020 19:23:30 +0200 Subject: [PATCH] :art: Use const --- src/emit/emit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/emit/emit.c b/src/emit/emit.c index 93af7968..94668df2 100644 --- a/src/emit/emit.c +++ b/src/emit/emit.c @@ -882,7 +882,7 @@ static inline m_bool push_func_code(const Emitter emit, const Func f) { ANN static m_bool emit_template_code(const Emitter emit, const Func f) { const Value v = f->value_ref; - size_t scope = emit->env->scope->depth; + const size_t scope = emit->env->scope->depth; struct EnvSet es = { .env=emit->env, .data=emit, .func=(_exp_func)emit_cdef, .scope=scope, .flag=ae_flag_emit }; if(v->from->owner_class) -- 2.43.0