commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r802183 - /commons/sandbox/runtime/trunk/src/main/native/shared/md5.c
Date Fri, 07 Aug 2009 20:56:49 GMT
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 */



Mime
View raw message