X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=sha1.c;h=e10cccab2f2f9e8ffad2bad8ff62677c7e01df39;hp=3346d7619e12a92b3297f5404d4337cae9fbad7d;hb=576fe981b1c21595f2b04c2b69153dc0a46dbfdf;hpb=637ab36596a6122a4c034d4368d0c98e568bf6de diff --git a/sha1.c b/sha1.c index 3346d76..e10ccca 100644 --- a/sha1.c +++ b/sha1.c @@ -249,13 +249,13 @@ static void blk_SHA1_Init(blk_SHA_CTX *ctx) static void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *data, unsigned long len) { - int lenW = ctx->size & 63; + unsigned lenW = ctx->size & 63; ctx->size += len; /* Read the data into W and process blocks as they get full */ if (lenW) { - int left = 64 - lenW; + unsigned left = 64 - lenW; if (len < left) left = len; memcpy(lenW + (char *)ctx->W, data, left);