git submodule status: Add --recursive to recurse into nested submodules
[gitweb.git] / block-sha1 / sha1.c
index e5a100754e1d2c62ef168d0c120180ef4da7647b..464cb258aaa11786d3615a55c0ae8dff95150667 100644 (file)
@@ -246,14 +246,14 @@ void blk_SHA1_Update(blk_SHA_CTX *ctx, const void *data, unsigned long len)
                memcpy(lenW + (char *)ctx->W, data, left);
                lenW = (lenW + left) & 63;
                len -= left;
-               data += left;
+               data = ((const char *)data + left);
                if (lenW)
                        return;
                blk_SHA1_Block(ctx, ctx->W);
        }
        while (len >= 64) {
                blk_SHA1_Block(ctx, data);
-               data += 64;
+               data = ((const char *)data + 64);
                len -= 64;
        }
        if (len)