]> Nishi Git Mirror - gwion.git/commitdiff
:art: Use is_func
authorJérémie Astor <fennecdjay@gmail.com>
Sat, 14 May 2022 13:43:31 +0000 (15:43 +0200)
committerJérémie Astor <fennecdjay@gmail.com>
Sat, 14 May 2022 13:43:31 +0000 (15:43 +0200)
plug
src/lib/deep_equal.c

diff --git a/plug b/plug
index 5a583451cd50f26867cf18c9bd309e3cc0f523d2..fc69577c10bf873e2cabfe8c3fcf614a17449905 160000 (submodule)
--- a/plug
+++ b/plug
@@ -1 +1 @@
-Subproject commit 5a583451cd50f26867cf18c9bd309e3cc0f523d2
+Subproject commit fc69577c10bf873e2cabfe8c3fcf614a17449905
index a71cfeaff7dca83374f10802b3d1511842667937..93713cb792aba2dbebc4d44e04f18f2db50e0f67 100644 (file)
@@ -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);
   }
 }