Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 3617 invoked from network); 11 Aug 2009 12:04:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Aug 2009 12:04:11 -0000 Received: (qmail 38690 invoked by uid 500); 11 Aug 2009 12:04:18 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 38595 invoked by uid 500); 11 Aug 2009 12:04:18 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 38586 invoked by uid 99); 11 Aug 2009 12:04:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 12:04:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Aug 2009 12:04:16 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 1FA0223888D7; Tue, 11 Aug 2009 12:03:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r803080 - /commons/sandbox/runtime/trunk/src/main/native/shared/sha2.c Date: Tue, 11 Aug 2009 12:03:56 -0000 To: commits@commons.apache.org From: mturk@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090811120356.1FA0223888D7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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) {