From: Loup Vaillant Date: Sun, 1 Dec 2019 09:33:01 +0000 (+0100) Subject: Fixed Clang warning X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=da427dde5726585e457b8ddb94ec8e5ef0bdef4e;p=Monocypher.git Fixed Clang warning --- diff --git a/src/monocypher.c b/src/monocypher.c index 2e70c61..06491e0 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -226,7 +226,7 @@ u32 crypto_ietf_chacha20_ctr(u8 *cipher_text, const u8 *plain_text, input[13] = load32_le(nonce); input[14] = load32_le(nonce + 4); input[15] = load32_le(nonce + 8); - ctr = chacha20_core(input, cipher_text, plain_text, text_size); + ctr = (u32)chacha20_core(input, cipher_text, plain_text, text_size); WIPE_BUFFER(input); return ctr; }