From 7fa840e4867873f31acfe97125626ffd911c90de Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Wed, 9 Sep 2015 17:42:38 +0200 Subject: [PATCH] C++ compat --- test/default/secretbox_easy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/default/secretbox_easy.c b/test/default/secretbox_easy.c index ead65b96..3a4332a0 100644 --- a/test/default/secretbox_easy.c +++ b/test/default/secretbox_easy.c @@ -30,8 +30,8 @@ int main(void) unsigned char *mac; size_t i; - c = sodium_malloc(131 + crypto_secretbox_MACBYTES + 1); - mac = sodium_malloc(crypto_secretbox_MACBYTES); + c = (unsigned char *) sodium_malloc(131 + crypto_secretbox_MACBYTES + 1); + mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES); assert(c != NULL && mac != NULL); crypto_secretbox_easy(c, m, 131, nonce, firstkey);