Author: mturk Date: Tue Aug 11 12:03:55 2009 New Revision: 803080 URL: http://svn.apache.org/viewvc?rev=803080&view=rev Log: Use size_t instead usigned int
Modified: commons/sandbox/runtime/trunk/src/main/native/shared/sha2.c Modified: commons/sandbox/runtime/trunk/src/main/native/shared/sha2.c URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/shared/sha2.c?rev=803080&r1=803079&r2=803080&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/src/main/native/shared/sha2.c (original) +++ commons/sandbox/runtime/trunk/src/main/native/shared/sha2.c Tue Aug 11 12:03:55 2009 @@ -456,7 +456,7 @@ static void acr_SHA256Pad(acr_sha2_ctx_t *context) { - unsigned int usedspace; + size_t usedspace; usedspace = (size_t)((context->bitcount[0] >> 3) % ACR_SHA256_BLOCK_LENGTH); if (usedspace > 0) { @@ -784,7 +784,7 @@ void acr_SHA512Pad(acr_sha2_ctx_t *context) { - unsigned int usedspace; + size_t usedspace; usedspace = (size_t)((context->bitcount[0] >> 3) % ACR_SHA512_BLOCK_LENGTH); if (usedspace > 0) {