From 381ff4efed63d28281098162bcb67dc1da84e4f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Mon, 14 Sep 2020 11:39:24 +0200 Subject: [PATCH] :bug: But just a typo --- src/parse/operator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse/operator.c b/src/parse/operator.c index 3ced6b22..5b89942c 100644 --- a/src/parse/operator.c +++ b/src/parse/operator.c @@ -39,7 +39,7 @@ ANN static Type op_parent(const Env env, const Type t) { const Type type = typedef_base(t); char name[strlen(type->name) + 1]; strcpy(name, type->name); - const m_str post = strrchr(name, ':'); + const m_str post = strchr(name, ':'); *post = '\0'; return nspc_lookup_type1(env->curr, insert_symbol(env->gwion->st, name)); } -- 2.43.0