From 588c03c536a3dad31beb558d26ca5eb28f27b1b9 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Fri, 3 Mar 2017 10:29:50 +0100 Subject: [PATCH] C++ compat --- test/default/xchacha20.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/xchacha20.c b/test/default/xchacha20.c index 2b5e2e33..b3936b9c 100644 --- a/test/default/xchacha20.c +++ b/test/default/xchacha20.c @@ -161,7 +161,7 @@ tv_stream_xchacha20(void) crypto_stream_xchacha20_xor_ic(out + 128, out + 128, 64, nonce, (1ULL << 32) + 1, key); assert(memcmp(out, out2, 192) == 0); - hex = sodium_malloc(192 * 2 + 1); + hex = (char *) sodium_malloc(192 * 2 + 1); sodium_bin2hex(hex, 192 * 2 + 1, out, 192); printf("%s\n", hex); sodium_free(hex);