From 5957e2c73598d0cee42e8891312d1c6bc7a222d7 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 19 Feb 2017 21:23:34 +0100 Subject: [PATCH] C++ compat --- test/default/keygen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/default/keygen.c b/test/default/keygen.c index ba1d0841..8f6735f3 100644 --- a/test/default/keygen.c +++ b/test/default/keygen.c @@ -39,7 +39,7 @@ tv_keygen(void) for (i = 0; i < (sizeof tvs) / (sizeof tvs[0]); i++) { tv = &tvs[i]; - key = sodium_malloc(tv->key_len); + key = (unsigned char *) sodium_malloc(tv->key_len); key[tv->key_len - 1U] = 0; for (j = 0; j < 10000; j++) { tv->fn(key);