From b812ca6f259c7b54036857d031def6da8eb2bac3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 12 May 2022 20:55:36 +0200 Subject: [PATCH] :bug: Use full path in ref_type --- src/lib/ref.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/ref.c b/src/lib/ref.c index 504e0644..8d9e620a 100644 --- a/src/lib/ref.c +++ b/src/lib/ref.c @@ -18,8 +18,9 @@ #include "tmpl_info.h" ANN Type ref_type(const Gwion gwion, const Type t, const loc_t loc) { - char c[7 + strlen(t->name)]; - sprintf(c, "Ref:[%s]", t->name); + const m_str name = type2str(gwion, t, loc); + char c[7 + strlen(name)]; + sprintf(c, "Ref:[%s]", name); return str2type(gwion, c, loc); } -- 2.43.0