From da427dde5726585e457b8ddb94ec8e5ef0bdef4e Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Sun, 1 Dec 2019 10:33:01 +0100 Subject: [PATCH] Fixed Clang warning --- src/monocypher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3