From 4f70e7c17124ffdb9a0e58adb4e2bbf866c48bcf Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 20 Nov 2014 11:35:32 -0800 Subject: [PATCH] C++ compat --- test/default/scalarmult6.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/default/scalarmult6.c b/test/default/scalarmult6.c index f5510b86..7fdc9e5e 100644 --- a/test/default/scalarmult6.c +++ b/test/default/scalarmult6.c @@ -21,9 +21,9 @@ int main(void) unsigned char *alicepk; int i; - k = sodium_malloc(crypto_scalarmult_BYTES); - bobsk = sodium_malloc(crypto_scalarmult_SCALARBYTES); - alicepk = sodium_malloc(crypto_scalarmult_SCALARBYTES); + k = (unsigned char *) sodium_malloc(crypto_scalarmult_BYTES); + bobsk = (unsigned char *) sodium_malloc(crypto_scalarmult_SCALARBYTES); + alicepk = (unsigned char *) sodium_malloc(crypto_scalarmult_SCALARBYTES); assert(k != NULL && bobsk != NULL && alicepk != NULL); memcpy(bobsk, bobsk_, crypto_scalarmult_SCALARBYTES);