From 3a358b06774803ec1d7b5370cfa5bc3368944206 Mon Sep 17 00:00:00 2001 From: Ben Taylor Date: Wed, 27 May 2026 15:06:16 +0100 Subject: [PATCH] Remove unused cast Signed-off-by: Ben Taylor --- library/chacha20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/chacha20.c b/library/chacha20.c index 205befb34b..484bf7cfdf 100644 --- a/library/chacha20.c +++ b/library/chacha20.c @@ -227,7 +227,7 @@ static int chacha20_check_counter_wrap(const mbedtls_chacha20_context *ctx, size -= available_keystream; } - needed_blocks = (uint64_t) (size / CHACHA20_BLOCK_SIZE_BYTES); + needed_blocks = (size / CHACHA20_BLOCK_SIZE_BYTES); if (size % CHACHA20_BLOCK_SIZE_BYTES != 0U) { needed_blocks++;