You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/08/07 22:56:49 UTC

svn commit: r802183 - /commons/sandbox/runtime/trunk/src/main/native/shared/md5.c

Author: mturk
Date: Fri Aug  7 20:56:48 2009
New Revision: 802183

URL: http://svn.apache.org/viewvc?rev=802183&view=rev
Log:
Cast to size_t

Modified:
    commons/sandbox/runtime/trunk/src/main/native/shared/md5.c

Modified: commons/sandbox/runtime/trunk/src/main/native/shared/md5.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/md5.c?rev=802183&r1=802182&r2=802183&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/shared/md5.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/shared/md5.c Fri Aug  7 20:56:48 2009
@@ -261,7 +261,7 @@
 
     /* Pad out to 56 mod 64. */
     padlen = ACR_MD5_BLOCK_LENGTH -
-             ((ctx->count >> 3) & (ACR_MD5_BLOCK_LENGTH - 1));
+             (size_t)((ctx->count >> 3) & (ACR_MD5_BLOCK_LENGTH - 1));
     if (padlen < 1 + 8)
         padlen += ACR_MD5_BLOCK_LENGTH;
     ACR_Md5Update(ctx, PADDING, padlen - 8);        /* padlen - 8 <= 64 */