From 4bf74c757460a07d8bb05b9f527d1657147b157a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Mon, 7 Dec 2015 10:46:03 +0100 Subject: [PATCH] C++ compat --- test/default/box8.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/default/box8.c b/test/default/box8.c index ea00da51..75b2f239 100644 --- a/test/default/box8.c +++ b/test/default/box8.c @@ -19,9 +19,9 @@ int main(void) int faults; int ret; - m = sodium_malloc(mlen_max); - c = sodium_malloc(mlen_max); - m2 = sodium_malloc(mlen_max); + m = (unsigned char *) sodium_malloc(mlen_max); + c = (unsigned char *) sodium_malloc(mlen_max); + m2 = (unsigned char *) sodium_malloc(mlen_max); crypto_box_keypair(alicepk, alicesk); crypto_box_keypair(bobpk, bobsk); for (mlen = 0; mlen + crypto_box_ZEROBYTES <= mlen_max; mlen++) {