summaryrefslogtreecommitdiffstats
path: root/MD5.c
diff options
context:
space:
mode:
authorKWSys Upstream <kwrobot@kitware.com>2016-03-08 14:25:26 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-08 14:29:17 (GMT)
commit4ba9b473a20cdf1284522dabb170b611fbf0f02e (patch)
tree43db8d23678482e4288a838c85619fe4849a1b22 /MD5.c
parenta132064b4821ee21c45717b459351ac4ffe4d372 (diff)
downloadCMake-4ba9b473a20cdf1284522dabb170b611fbf0f02e.zip
CMake-4ba9b473a20cdf1284522dabb170b611fbf0f02e.tar.gz
CMake-4ba9b473a20cdf1284522dabb170b611fbf0f02e.tar.bz2
KWSys 2016-03-08 (6b60c184)
Code extracted from: http://public.kitware.com/KWSys.git at commit 6b60c1843dbba9d4929496f9292cc78dab945c68 (master). Upstream Shortlog ----------------- Mariusz PluciƄski (1): 6b60c184 SystemInformation: Fix compilation on VS Clang/C2 toolset Sean McBride (3): 6ea22e65 Suppressed clang -Wcomma warnings with void cast 8d9d489d Fixed clang-tidy warnings about macros missing defensive parens 1c544330 Made private method static to silence warning
Diffstat (limited to 'MD5.c')
-rw-r--r--MD5.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/MD5.c b/MD5.c
index b9d25a8..b75acb2 100644
--- a/MD5.c
+++ b/MD5.c
@@ -254,7 +254,7 @@ md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
a = b + ((a + F(b,c,d) + X[k] + T[i]) <<< s). */
#define F(x, y, z) (((x) & (y)) | (~(x) & (z)))
#define SET(a, b, c, d, k, s, Ti)\
- t = a + F(b,c,d) + X[k] + Ti;\
+ t = a + F(b,c,d) + X[k] + (Ti);\
a = ROTATE_LEFT(t, s) + b
/* Do the following 16 operations. */
SET(a, b, c, d, 0, 7, T1);
@@ -280,7 +280,7 @@ md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
a = b + ((a + G(b,c,d) + X[k] + T[i]) <<< s). */
#define G(x, y, z) (((x) & (z)) | ((y) & ~(z)))
#define SET(a, b, c, d, k, s, Ti)\
- t = a + G(b,c,d) + X[k] + Ti;\
+ t = a + G(b,c,d) + X[k] + (Ti);\
a = ROTATE_LEFT(t, s) + b
/* Do the following 16 operations. */
SET(a, b, c, d, 1, 5, T17);
@@ -306,7 +306,7 @@ md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
a = b + ((a + H(b,c,d) + X[k] + T[i]) <<< s). */
#define H(x, y, z) ((x) ^ (y) ^ (z))
#define SET(a, b, c, d, k, s, Ti)\
- t = a + H(b,c,d) + X[k] + Ti;\
+ t = a + H(b,c,d) + X[k] + (Ti);\
a = ROTATE_LEFT(t, s) + b
/* Do the following 16 operations. */
SET(a, b, c, d, 5, 4, T33);
@@ -332,7 +332,7 @@ md5_process(md5_state_t *pms, const md5_byte_t *data /*[64]*/)
a = b + ((a + I(b,c,d) + X[k] + T[i]) <<< s). */
#define I(x, y, z) ((y) ^ ((x) | ~(z)))
#define SET(a, b, c, d, k, s, Ti)\
- t = a + I(b,c,d) + X[k] + Ti;\
+ t = a + I(b,c,d) + X[k] + (Ti);\
a = ROTATE_LEFT(t, s) + b
/* Do the following 16 operations. */
SET(a, b, c, d, 0, 6, T49);