]> Nishi Git Mirror - gwion.git/commitdiff
:art: Improve find_value
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:54:42 +0000 (16:54 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:54:42 +0000 (16:54 +0200)
src/lib/instr.c
src/oo/type.c

index 66d305c6f0959b150969103f803471c119b64efa..8b9fe2bb8915fd7038987acf948e0902f59fec49 100644 (file)
@@ -116,5 +116,5 @@ INSTR(DotTmpl) {
       return;
     }
   } while((t = t->e->parent));
-  Except(shred, "MissigTmplException[internal]"); //unreachable
+  Except(shred, "MissigTmplException[internal]");
 }
index bcdb2bfdc4615b16b516ec92572f6db9d08aec54..4c00d740b0ff73ba4f58236bfc0118e7c9524607 100644 (file)
@@ -75,7 +75,7 @@ ANN Type find_common_anc(const restrict Type lhs, const restrict Type rhs) {
 #define describe_find(name, t)                                       \
 ANN t find_##name(const Type type, const Symbol xid) {               \
   if(type->nspc) {                                                   \
-  const t val = nspc_lookup_##name##1(type->nspc, xid);              \
+  const t val = nspc_lookup_##name##0(type->nspc, xid);              \
   if(val)                                                            \
     return val;                                                      \
   }                                                                  \