Right hand side of assignment needs parenthesis

This commit is contained in:
Francois Perrad 2017-06-09 09:50:24 +02:00
parent f40bda7cb3
commit ec51f880b5
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@
*/
#define REGISTER_CIPHER(h) do {\
LTC_ARGCHK((err = register_cipher(h) == -1 ? CRYPT_ERROR : CRYPT_OK) == CRYPT_OK); \
LTC_ARGCHK(((err = register_cipher(h)) == -1 ? CRYPT_ERROR : CRYPT_OK) == CRYPT_OK); \
} while(0)
int register_all_ciphers(void)

View File

@ -16,7 +16,7 @@
*/
#define REGISTER_HASH(h) do {\
LTC_ARGCHK((err = register_hash(h) == -1 ? CRYPT_ERROR : CRYPT_OK) == CRYPT_OK); \
LTC_ARGCHK(((err = register_hash(h)) == -1 ? CRYPT_ERROR : CRYPT_OK) == CRYPT_OK); \
} while(0)
int register_all_hashes(void)

View File

@ -16,7 +16,7 @@
*/
#define REGISTER_PRNG(h) do {\
LTC_ARGCHK((err = register_prng(h) == -1 ? CRYPT_ERROR : CRYPT_OK) == CRYPT_OK); \
LTC_ARGCHK(((err = register_prng(h)) == -1 ? CRYPT_ERROR : CRYPT_OK) == CRYPT_OK); \
} while(0)
int register_all_prngs(void)