From 18f4dd241eb7f4f867266cbb78353680ebc593ff Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 23 Sep 2014 21:30:37 -0700 Subject: [PATCH] C++ compat --- test/default/pwhash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/default/pwhash.c b/test/default/pwhash.c index 1c07f271..f61214ff 100644 --- a/test/default/pwhash.c +++ b/test/default/pwhash.c @@ -264,9 +264,9 @@ static void tv3(void) size_t i = 0U; do { - out = sodium_malloc(strlen(tests[i].out) + 1U); + out = (char *) sodium_malloc(strlen(tests[i].out) + 1U); memcpy(out, tests[i].out, strlen(tests[i].out) + 1U); - passwd = sodium_malloc(strlen(tests[i].passwd) + 1U); + passwd = (char *) sodium_malloc(strlen(tests[i].passwd) + 1U); memcpy(passwd, tests[i].passwd, strlen(tests[i].passwd) + 1U); if (crypto_pwhash_scryptsalsa208sha256_str_verify( out, passwd, strlen(passwd)) != 0) {