From 02c9633433396265a2c768a69297e1793841a821 Mon Sep 17 00:00:00 2001 From: David Cole Date: Wed, 8 Jul 2009 16:18:19 -0400 Subject: COMP: Eliminate "conversion may change sign of result" warnings by using size_t where appropriate. (Missed one warning with last commit: add a cast to md5_word_t.) --- Source/kwsys/MD5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/kwsys/MD5.c b/Source/kwsys/MD5.c index 8d2905a..915a731 100644 --- a/Source/kwsys/MD5.c +++ b/Source/kwsys/MD5.c @@ -382,7 +382,7 @@ static void md5_append(md5_state_t *pms, const md5_byte_t *data, size_t nbytes) return; /* Update the message length. */ - pms->count[1] += nbytes >> 29; + pms->count[1] += (md5_word_t)(nbytes >> 29); pms->count[0] += nbits; if (pms->count[0] < nbits) pms->count[1]++; -- cgit v0.12