From dca2131f45e229342694e4eb5af29a3bc7625e18 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 21 Sep 2015 16:05:53 +0200 Subject: [PATCH] C++ compat --- test/default/scalarmult.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/test/default/scalarmult.c b/test/default/scalarmult.c index a14c6b6c..d476783a 100644 --- a/test/default/scalarmult.c +++ b/test/default/scalarmult.c @@ -16,9 +16,12 @@ char hex[crypto_scalarmult_BYTES * 2 + 1]; int main(void) { - unsigned char *alicepk = sodium_malloc(crypto_scalarmult_BYTES); - unsigned char *bobpk = sodium_malloc(crypto_scalarmult_BYTES); - unsigned char *k = sodium_malloc(crypto_scalarmult_BYTES); + unsigned char *alicepk = + (unsigned char *) sodium_malloc(crypto_scalarmult_BYTES); + unsigned char *bobpk = + (unsigned char *) sodium_malloc(crypto_scalarmult_BYTES); + unsigned char *k = + (unsigned char *) sodium_malloc(crypto_scalarmult_BYTES); assert(alicepk != NULL && bobpk != NULL && k != NULL);