From 1ad9da4b8721e4e5815aeeea74e51a811dc1ce0f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 12 Oct 2019 03:35:46 +0200 Subject: [PATCH] :art: Improve specialid --- src/lib/import.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/lib/import.c b/src/lib/import.c index c9d4a3a8..dd2d6a37 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -666,11 +666,7 @@ ANN void gwi_reserve(const Gwi gwi, const m_str str) { ANN void gwi_specialid(const Gwi gwi, const m_str id, const SpecialId spid) { struct SpecialId_ *a = mp_calloc(gwi->gwion->mp, SpecialId); - a->type = spid->type; - a->ck = spid->ck; - a->exec = spid->exec; - a->em = spid->em; - a->is_const = spid->is_const; + memcpy(a, spid, sizeof(struct SpecialId_)); map_set(&gwi->gwion->data->id, (vtype)insert_symbol(gwi->gwion->st, id), (vtype)a); gwi_reserve(gwi, id); } -- 2.43.0