From 2098cc4b6620b2b782ab1d44385b9b126f10f26d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sat, 14 May 2022 15:43:31 +0200 Subject: [PATCH] :art: Use is_func --- plug | 2 +- src/lib/deep_equal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plug b/plug index 5a583451..fc69577c 160000 --- a/plug +++ b/plug @@ -1 +1 @@ -Subproject commit 5a583451cd50f26867cf18c9bd309e3cc0f523d2 +Subproject commit fc69577c10bf873e2cabfe8c3fcf614a17449905 diff --git a/src/lib/deep_equal.c b/src/lib/deep_equal.c index a71cfeaf..93713cb7 100644 --- a/src/lib/deep_equal.c +++ b/src/lib/deep_equal.c @@ -48,7 +48,7 @@ static void type_get_member(const Gwion gwion, const Type t, const Vector v) { for(m_uint i = 0; i < map_size(m); i++) { const Value value = (Value)map_at(m, i); if(!vflag(value, vflag_member)) continue; - if(isa(value->type, gwion->type[et_function]) > 0 && !is_fptr(gwion, value->type)) continue; + if(is_func(gwion, value->type) && !is_fptr(gwion, value->type)) continue; vector_add(v, (m_uint)value); } } -- 2.43.0