From 08415d37f352b7bff647a900dd7194ae9f7c5f1d Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Thu, 6 Apr 2017 22:47:36 +0200 Subject: [PATCH] fix compare_testvector() macro --- src/headers/tomcrypt_misc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/tomcrypt_misc.h b/src/headers/tomcrypt_misc.h index 91f87c5c..76f4f6bc 100644 --- a/src/headers/tomcrypt_misc.h +++ b/src/headers/tomcrypt_misc.h @@ -105,7 +105,7 @@ void print_hex(const char* what, const void* v, const unsigned long l); int compare_testvector(const void* is, const unsigned long is_len, const void* should, const unsigned long should_len, const char* what, int which); #else #define compare_testvector(is, is_len, should, should_len, what, which) \ - (((is_len) != (should_len)) || (XMEMCMP((is), (should), (is_len)) != 0)) + ((((is_len) != (should_len)) || (XMEMCMP((is), (should), (is_len)) != 0)) ? 1 : 0) #endif /* $Source$ */