]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix special_type
authorJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 24 May 2020 14:44:51 +0000 (16:44 +0200)
committerJérémie Astor <astor.jeremie@wanadoo.fr>
Sun, 24 May 2020 14:44:51 +0000 (16:44 +0200)
src/env/type_special.c

index b03014dfce2aaed9c4c9813abd080f150b74f243..60509ea6253411c2a0cb39d245e0266742036268 100644 (file)
@@ -36,7 +36,7 @@ static inline int get_flag(const Type t, const ae_flag flag) {
 ANN static void specialtype_flag(SpecialType *s, m_str c, const uint i) {
   const ae_flag flag = special_flag[i];
   if(i == s->st_type || get_flag(s->type, flag)) {
-    strcat(c, special_name[0]);
+    strcat(c, special_name[i]);
     s->flag |= flag;
   }
 }