]> Nishi Git Mirror - gwion.git/commitdiff
:bug: Fix find_value
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 9 Jul 2019 23:06:04 +0000 (01:06 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 9 Jul 2019 23:06:04 +0000 (01:06 +0200)
src/oo/type.c

index ca36381c377f9ce76ced2be377502c1b2a3b8840..f8bc74afbea71cc4ac36a31a45baff365e95c6a5 100644 (file)
@@ -66,7 +66,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;                                                      \
   }                                                                  \