mirror of
https://github.com/cryb-to/cryb-to.git
synced 2024-12-25 14:01:07 +00:00
Silence compiler warnings about operator precedence.
This commit is contained in:
parent
95ab26f82c
commit
3eb1dd1be6
1 changed files with 2 additions and 2 deletions
|
@ -68,11 +68,11 @@ md4_compute(md4_ctx *ctx, const uint8_t *data)
|
|||
C = ctx->state[2];
|
||||
D = ctx->state[3];
|
||||
|
||||
#define F(x, y, z) (x & y | ~x & z)
|
||||
#define F(x, y, z) ((x & y) | (~x & z))
|
||||
#define md4_round1(a, b, c, d, k, s) \
|
||||
a = rol32(a + F(b, c, d) + X[k], s)
|
||||
|
||||
#define G(x, y, z) (x & y | x & z | y & z)
|
||||
#define G(x, y, z) ((x & y) | (x & z) | (y & z))
|
||||
#define md4_round2(a, b, c, d, k, s) \
|
||||
a = rol32(a + G(b, c, d) + X[k] + 0x5a827999, s)
|
||||
|
||||
|
|
Loading…
Reference in a new issue