From 4c93d0391cf9e7c16165fde8ce39cb82aa8e7ff7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 17 Aug 2017 23:27:20 +0200 Subject: [PATCH] C++ compat --- test/default/sodium_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/sodium_utils.c b/test/default/sodium_utils.c index 444c17ea..06e9615a 100644 --- a/test/default/sodium_utils.c +++ b/test/default/sodium_utils.c @@ -289,7 +289,7 @@ main(void) bin_len = randombytes_uniform(200U); blocksize = 1U + randombytes_uniform(100U); bin_padded_maxlen = bin_len + (blocksize - bin_len % blocksize); - bin_padded = sodium_malloc(bin_padded_maxlen); + bin_padded = (unsigned char *) sodium_malloc(bin_padded_maxlen); randombytes_buf(bin_padded, bin_padded_maxlen); assert(sodium_pad(&bin_padded_len, bin_padded, bin_len,