From 2746b131aa482ac17c94bc6b82e58dbcc1b752cf Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 21 Jan 2017 15:46:20 +0000 Subject: Types fix: librandom, libstdcrypto --- src/libstdcrypto/sha512_update.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/libstdcrypto/sha512_update.c') diff --git a/src/libstdcrypto/sha512_update.c b/src/libstdcrypto/sha512_update.c index 4c8029e..63bc6fb 100644 --- a/src/libstdcrypto/sha512_update.c +++ b/src/libstdcrypto/sha512_update.c @@ -1,12 +1,13 @@ /* ISC license. */ +#include #include #include #include "sha512-internal.h" -void sha512_update (SHA512Schedule *ctx, char const *buf, unsigned int len) +void sha512_update (SHA512Schedule *ctx, char const *buf, size_t len) { - register unsigned int pad = ctx->len & 0x7fu ; + register unsigned int pad = ctx->len & 0x7fU ; ctx->len += len ; if (pad && len >= 128 - pad) { -- cgit v1.2.3