Avoid WIN32 signed/unsigned warnings.
[openssl.git] / engines / ccgost / gosthash.c
index 1acd16317bf384966f6dcaaf9163587bbe77edd8..de55e0c3aa9dcf55fc3d7ff3a52bf1a5efe42b16 100644 (file)
@@ -185,7 +185,7 @@ int hash_block(gost_hash_ctx *ctx,const byte *block, size_t length)
        if (ctx->left)
                {
                /*There are some bytes from previous step*/
-               int add_bytes = 32-ctx->left;
+               unsigned int add_bytes = 32-ctx->left;
                if (add_bytes>length)
                        {
                        add_bytes = length;