From 7215ca2d1683d554aa93446b1c7300e3ece54473 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Thu, 10 Sep 2020 21:02:31 +0200 Subject: [PATCH] :bug: Fix special_type --- src/env/type_special.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.43.0