From f8c448fbaa3896a3eebb4df205acd14df25cba72 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Mon, 7 Oct 2019 21:34:03 +0200 Subject: [PATCH] :art: Improve specialid --- include/specialid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.43.0