X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/blobdiff_plain/776d2da28318443431563b68c2807eb0c29c49fa..3618811496a6d131fd4bffa19e262c521d39e819:/struct/sym.c?ds=sidebyside diff --git a/struct/sym.c b/struct/sym.c index 4543811..2eb309c 100644 --- a/struct/sym.c +++ b/struct/sym.c @@ -40,6 +40,7 @@ #include "bits.h" #include "exc.h" #include "hash.h" +#include "macros.h" #include "sub.h" #include "sym.h" #include "unihash.h" @@ -136,7 +137,8 @@ void *sym_find(sym_table *t, const char *n, long l, size_t sz, unsigned *f) for (p = bin; *p; p = &(*p)->next) { q = (sym_base *)*p; - if (hash == q->b.hash && len == q->len && !memcmp(n, SYM_NAME(q), len)) { + if (hash == q->b.hash && len == q->len && + MEMCMP(n, ==, SYM_NAME(q), len)) { /* --- Found a match --- * *