Mercurial > libavutil.hg
changeset 46:a559b4f0754b libavutil
cast pointers to make compiler happy
remove test define
author | ivo |
---|---|
date | Sun, 02 Jul 2006 19:00:15 +0000 |
parents | 31c84858af22 |
children | 58acf79a19d3 |
files | md5.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/md5.c Sat Jul 01 10:02:08 2006 +0000 +++ b/md5.c Sun Jul 02 19:00:15 2006 +0000 @@ -116,7 +116,7 @@ for( i = 0; i < len; i++ ){ ctx->block[ ctx->b_used++ ] = src[i]; if( 64 == ctx->b_used ){ - body(ctx->ABCD, ctx->block); + body(ctx->ABCD, (const uint32_t*) ctx->block); ctx->b_used = 0; } } @@ -130,16 +130,15 @@ memset(&ctx->block[ctx->b_used], 0, 64 - ctx->b_used); if( 56 < ctx->b_used ){ - body( ctx->ABCD, ctx->block ); + body( ctx->ABCD, (const uint32_t*) ctx->block ); memset(ctx->block, 0, 64); } for(i=0; i<8; i++) ctx->block[56+i] = (ctx->len << 3) >> (i<<3); - body(ctx->ABCD, ctx->block); + body(ctx->ABCD, (const uint32_t*) ctx->block); -#define le2me_32(a) a for(i=0; i<4; i++) ((uint32_t*)dst)[i]= le2me_32(ctx->ABCD[3-i]); }