From: Jérémie Astor Date: Sat, 14 May 2022 13:43:31 +0000 (+0200) Subject: :art: Use is_func X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=2098cc4b6620b2b782ab1d44385b9b126f10f26d;p=gwion.git :art: Use is_func --- 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); } }