X-Git-Url: http://git.tuebingen.mpg.de/?p=osl.git;a=blobdiff_plain;f=sha1.c;h=e10cccab2f2f9e8ffad2bad8ff62677c7e01df39;hp=3346d7619e12a92b3297f5404d4337cae9fbad7d;hb=c2e27a85d7a7b8d4ce734c88f9ff1493b87a5789;hpb=c08e5f91757605bee3ab1182cc5506b3ade6568d 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);