From: fennecdjay Date: Tue, 3 Sep 2019 21:07:40 +0000 (+0200) Subject: :shirt: Fix compiler warning X-Git-Tag: nightly~2237 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=736d2b53e029c5c0ede9d66d737584b931147e60;p=gwion.git :shirt: Fix compiler warning --- diff --git a/src/oo/switch.c b/src/oo/switch.c index 768f5fdb..3d8dc38e 100644 --- a/src/oo/switch.c +++ b/src/oo/switch.c @@ -176,7 +176,7 @@ ANN m_bool switch_pop(const Env env) { ANN m_bool switch_end(const Env env, const loc_t pos) { const Switch sw = (Switch)_scope_pop(env->scope->swi); - map_remove(&env->scope->swi->map, sw->info); + map_remove(&env->scope->swi->map, (vtype)sw->info); const m_bool empty = !VLEN(sw->cases) && !VLEN(&sw->exp); free_switch(env->gwion->mp, sw); if(empty)