diff --git a/test/default/secretbox_easy.c b/test/default/secretbox_easy.c index ead65b96..3a4332a0 100644 --- a/test/default/secretbox_easy.c +++ b/test/default/secretbox_easy.c @@ -30,8 +30,8 @@ int main(void) unsigned char *mac; size_t i; - c = sodium_malloc(131 + crypto_secretbox_MACBYTES + 1); - mac = sodium_malloc(crypto_secretbox_MACBYTES); + c = (unsigned char *) sodium_malloc(131 + crypto_secretbox_MACBYTES + 1); + mac = (unsigned char *) sodium_malloc(crypto_secretbox_MACBYTES); assert(c != NULL && mac != NULL); crypto_secretbox_easy(c, m, 131, nonce, firstkey);