From: Jérémie Astor Date: Thu, 10 Sep 2020 19:02:31 +0000 (+0200) Subject: :bug: Fix special_type X-Git-Tag: nightly~1357 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=7215ca2d1683d554aa93446b1c7300e3ece54473;p=gwion.git :bug: Fix special_type --- diff --git a/src/env/type_special.c b/src/env/type_special.c index d6eea972..baea495e 100644 --- a/src/env/type_special.c +++ b/src/env/type_special.c @@ -4,7 +4,7 @@ #include "vm.h" #include "gwion.h" -static m_str const special_name[] = { "~nonnull", "~force" }; +static m_str const special_name[] = { "^nonnull", "^force" }; #define SPECIAL_LEN strlen(special_name[0]) + strlen(special_name[1]) static const ae_flag special_flag[] = { ae_flag_nonnull, ae_flag_force }; @@ -45,7 +45,7 @@ ANN static void specialtype_init(SymTable *st, SpecialType *s) { const size_t sz = strlen(s->type->name); char c[sz + SPECIAL_LEN + 1]; strcpy(c, s->type->name); - m_str flagged = strchr(c, '~'); + m_str flagged = strchr(c, '^'); if(flagged) *flagged = '\0'; specialtype_flag(s, c, 0);