From f169623d4e641e6571274371397c3d66a8f5582a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 12 Oct 2015 14:44:00 +0200 Subject: [PATCH] C++ compat --- 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 4910f86d..d436dd3e 100644 --- a/test/default/aead_aes256gcm.c +++ b/test/default/aead_aes256gcm.c @@ -3138,7 +3138,7 @@ tv(void) assert((size_t) found_ciphertext_len == ciphertext_len); if (memcmp(ciphertext, expected_ciphertext, ciphertext_len) != 0) { printf("Encryption of test vector #%u failed\n", (unsigned int) i); - hex = sodium_malloc(found_ciphertext_len * 2 + 1); + hex = (char *) sodium_malloc(found_ciphertext_len * 2 + 1); sodium_bin2hex(hex, found_ciphertext_len * 2 + 1, ciphertext, ciphertext_len); printf("Computed: [%s]\n", hex);