diff options
author | marha <marha@users.sourceforge.net> | 2009-12-10 15:49:55 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2009-12-10 15:49:55 +0000 |
commit | 0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c (patch) | |
tree | bbe20184d5104c1489cb84815f2f27dc4437be08 /tools/mhmake/src/md5.cpp | |
parent | 0540eb5a1f795c0f5265d244ec979b8ddfcf3acb (diff) | |
download | vcxsrv-0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c.tar.gz vcxsrv-0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c.tar.bz2 vcxsrv-0925cb4f76a1667fb3777efbe6a0e0e69c4cca3c.zip |
Added 64-bit compilation
Removed autodep optimisation.
Diffstat (limited to 'tools/mhmake/src/md5.cpp')
-rw-r--r-- | tools/mhmake/src/md5.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/mhmake/src/md5.cpp b/tools/mhmake/src/md5.cpp index 2161b3c75..908f28134 100644 --- a/tools/mhmake/src/md5.cpp +++ b/tools/mhmake/src/md5.cpp @@ -210,7 +210,7 @@ static uint8 md5_padding[64] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
-void md5_update( md5_context *ctx, uint8 *input, uint32 length )
+void md5_update( md5_context *ctx, uint8 *input, size_t length )
{
uint32 left, fill;
@@ -224,8 +224,7 @@ void md5_update( md5_context *ctx, uint8 *input, uint32 length ) left = ctx->total[0] & 0x3F;
fill = 64 - left;
- ctx->total[0] += length;
- ctx->total[0] &= 0xFFFFFFFF;
+ ctx->total[0] = (uint32)((ctx->total[0] + length)& 0xFFFFFFFF);
if( ctx->total[0] < length )
ctx->total[1]++;
|