From b8213a1298bfb4464b5f865b84f0b9fdd88461ee Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Mon, 11 Jul 2011 08:16:18 +0000
Subject: [PATCH] - Minor update in types to prevent compiler warning under
VS2010
---
library/sha4.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/library/sha4.c b/library/sha4.c
index 54d94fd28..d22287d7e 100644
--- a/library/sha4.c
+++ b/library/sha4.c
@@ -227,12 +227,12 @@ static void sha4_process( sha4_context *ctx, const unsigned char data[128] )
void sha4_update( sha4_context *ctx, const unsigned char *input, size_t ilen )
{
size_t fill;
- unsigned int64 left;
+ unsigned int left;
if( ilen <= 0 )
return;
- left = ctx->total[0] & 0x7F;
+ left = (unsigned int) (ctx->total[0] & 0x7F);
fill = 128 - left;
ctx->total[0] += (unsigned int64) ilen;