fix compare_testvector() macro

This commit is contained in:
Steffen Jaeckel 2017-04-06 22:47:36 +02:00
parent e4331bcc17
commit 08415d37f3

View File

@ -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$ */