From bdca518edcf636cc71e306a7720988d9c88152a7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 11 Dec 2017 19:54:10 +0100 Subject: [PATCH] Remove incorrect and useless cast --- test/default/secretbox_easy2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/secretbox_easy2.c b/test/default/secretbox_easy2.c index 0ccc0f8f..7cacbd7a 100644 --- a/test/default/secretbox_easy2.c +++ b/test/default/secretbox_easy2.c @@ -22,7 +22,7 @@ main(void) k = (unsigned char *) sodium_malloc(crypto_secretbox_KEYBYTES); mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES); crypto_secretbox_keygen(k); - randombytes_buf(m, (unsigned long long) mlen); + randombytes_buf(m, mlen); randombytes_buf(nonce, crypto_secretbox_NONCEBYTES); crypto_secretbox_easy(c, m, (unsigned long long) mlen, nonce, k); if (crypto_secretbox_open_easy(