From 083fa2abacf3cb3a7110ebcaf1080f91103a6d6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Fri, 4 Dec 2020 00:40:43 +0100 Subject: [PATCH] :art: Use GW_OK --- src/env/type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/env/type.c b/src/env/type.c index e28dd86c..d45e8fbb 100644 --- a/src/env/type.c +++ b/src/env/type.c @@ -53,7 +53,7 @@ ANN Type type_copy(MemPool p, const Type type) { } ANN m_bool isa(const restrict Type var, const restrict Type parent) { - return (var->xid == parent->xid) ? 1 : var->info->parent ? isa(var->info->parent, parent) : -1; + return (var->xid == parent->xid) ? GW_OK : var->info->parent ? isa(var->info->parent, parent) : GW_ERROR; } ANN Type find_common_anc(const restrict Type lhs, const restrict Type rhs) { -- 2.43.0