From 2ee2e86f80ff7a9b6e447ac745a0c6ced67f71ab Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 14 Oct 2015 11:21:01 +0200 Subject: [PATCH] Explicit cast --- test/default/aead_aes256gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/aead_aes256gcm.c b/test/default/aead_aes256gcm.c index d436dd3e..4cd6edb0 100644 --- a/test/default/aead_aes256gcm.c +++ b/test/default/aead_aes256gcm.c @@ -3139,7 +3139,7 @@ tv(void) if (memcmp(ciphertext, expected_ciphertext, ciphertext_len) != 0) { printf("Encryption of test vector #%u failed\n", (unsigned int) i); hex = (char *) sodium_malloc(found_ciphertext_len * 2 + 1); - sodium_bin2hex(hex, found_ciphertext_len * 2 + 1, + sodium_bin2hex(hex, (size_t) found_ciphertext_len * 2 + 1, ciphertext, ciphertext_len); printf("Computed: [%s]\n", hex); sodium_free(hex);