From: fennecdjay Date: Mon, 7 Oct 2019 19:34:03 +0000 (+0200) Subject: :art: Improve specialid X-Git-Tag: nightly~2198^2~128 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=f8c448fbaa3896a3eebb4df205acd14df25cba72;p=gwion.git :art: Improve specialid --- diff --git a/include/specialid.h b/include/specialid.h index 3f92935c..69c5809e 100644 --- a/include/specialid.h +++ b/include/specialid.h @@ -21,7 +21,7 @@ ANN static inline Type specialid_type(const Env env, struct SpecialId_ *spid, const Exp_Primary* prim) { if(spid->is_const) exp_self(prim)->meta = ae_meta_value; - return spid->type ?: spid->ck(env, prim); + return spid->ck ? spid->ck(env, prim) : spid->type; } ANN static inline Instr specialid_instr(const Emitter emit,