From ecfe3bffa6cc019ba7e358dbe359f10e5ce6a09d Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 29 Sep 2019 15:18:53 +0100 Subject: [PATCH] hash/unihash.c: Replace a dynamic assertion with a static one. --- hash/unihash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)] ^ \ -- 2.11.0