From: Mark Wooding Date: Sun, 29 Sep 2019 14:18:53 +0000 (+0100) Subject: hash/unihash.c: Replace a dynamic assertion with a static one. X-Git-Tag: 2.4.1~4 X-Git-Url: https://git.distorted.org.uk/~mdw/mLib/commitdiff_plain/ecfe3bffa6cc019ba7e358dbe359f10e5ce6a09d hash/unihash.c: Replace a dynamic assertion with a static one. --- diff --git a/hash/unihash.c b/hash/unihash.c index a6f9ae2..c5ccd7e 100644 --- a/hash/unihash.c +++ b/hash/unihash.c @@ -27,9 +27,9 @@ /*----- Header files ------------------------------------------------------*/ -#include #include +#include "macros.h" #include "unihash.h" /*----- Main code ---------------------------------------------------------*/ @@ -92,7 +92,7 @@ uint32 unihash_hash(const unihash_info *i, uint32 a, { const octet *pp = p; - assert(UNIHASH_NBATCH == 4); + STATIC_ASSERT(UNIHASH_NBATCH == 4, "Batch size doesn't match computation"); #define FULLMULT(u, x) \ (i->s[u][0][U8((x) >> 0)] ^ i->s[u][1][U8((x) >> 8)] ^ \