Browse Source

Right hand side of assignment needs parenthesis

Francois Perrad 8 years ago
parent
commit
ec51f880b5

+ 1 - 1
src/misc/crypt/crypt_register_all_ciphers.c

@@ -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)

+ 1 - 1
src/misc/crypt/crypt_register_all_hashes.c

@@ -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)

+ 1 - 1
src/misc/crypt/crypt_register_all_prngs.c

@@ -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)