X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb/blobdiff_plain/8c5956c14f5834a072e1a9345ae1f356b14164ca..HEAD:/math/fgoldi.c diff --git a/math/fgoldi.c b/math/fgoldi.c index 1b09b58e..43309dcd 100644 --- a/math/fgoldi.c +++ b/math/fgoldi.c @@ -962,6 +962,7 @@ int fgoldi_quosqrt(fgoldi *z, const fgoldi *x, const fgoldi *y) #ifdef TEST_RIG +#include #include #include #include @@ -1002,7 +1003,7 @@ static void dump_fgoldi_ref(dstr *d, FILE *fp) } static int eq(const fgoldi *x, dstr *d) - { octet b[56]; fgoldi_store(b, x); return (memcmp(b, d->buf, 56) == 0); } + { octet b[56]; fgoldi_store(b, x); return (MEMCMP(b, ==, d->buf, 56)); } static const test_type type_fgoldi = { cvt_fgoldi, dump_fgoldi },