evrything - fixes strict aliasing wanring and was a stupid cast anyway

this fixes strict aliasing wanrings (-Wstrict-aliasing) whihc are a
result of imported md5 code being just really stupid with casting an
array to a ptr when there is no need.
This commit is contained in:
Carsten Haitzler 2013-12-29 15:08:39 +09:00
parent 28b157c385
commit ab268a42b0
1 changed files with 2 additions and 2 deletions

View File

@ -150,8 +150,8 @@ MD5Final(unsigned char digest[16], MD5_CTX *ctx)
byteReverse(ctx->in, 14);
/* Append length in bits and transform */
((uint32_t *)ctx->in)[14] = ctx->bits[0];
((uint32_t *)ctx->in)[15] = ctx->bits[1];
ctx->in[14] = ctx->bits[0];
ctx->in[15] = ctx->bits[1];
MD5Transform(ctx->buf, (uint32_t *)ctx->in);
byteReverse((unsigned char *)ctx->buf, 4);