Commit 05f38321 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

advapi32: Remove unneeded casts.

parent 1e1b29f8
......@@ -58,7 +58,7 @@ static void byteReverse( unsigned char *buf, unsigned longs )
unsigned int t;
do {
t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
t = ((unsigned)buf[3] << 8 | buf[2]) << 16 |
((unsigned)buf[1] << 8 | buf[0]);
*(unsigned int *)buf = t;
buf += 4;
......@@ -90,7 +90,7 @@ VOID WINAPI MD4Update( MD4_CTX *ctx, const unsigned char *buf, unsigned int len
/* Update bitcount */
t = ctx->i[0];
if ((ctx->i[0] = t + ((unsigned int)len << 3)) < t)
if ((ctx->i[0] = t + (len << 3)) < t)
ctx->i[1]++; /* Carry from low to high */
ctx->i[1] += len >> 29;
......
......@@ -55,7 +55,7 @@ static void byteReverse( unsigned char *buf, unsigned longs )
unsigned int t;
do {
t = (unsigned int)((unsigned)buf[3] << 8 | buf[2]) << 16 |
t = ((unsigned)buf[3] << 8 | buf[2]) << 16 |
((unsigned)buf[1] << 8 | buf[0]);
*(unsigned int *)buf = t;
buf += 4;
......@@ -87,7 +87,7 @@ VOID WINAPI MD5Update( MD5_CTX *ctx, const unsigned char *buf, unsigned int len
/* Update bitcount */
t = ctx->i[0];
if ((ctx->i[0] = t + ((unsigned int)len << 3)) < t)
if ((ctx->i[0] = t + (len << 3)) < t)
ctx->i[1]++; /* Carry from low to high */
ctx->i[1] += len >> 29;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment