diff --git a/test/default/generichash2.c b/test/default/generichash2.c index e3ec270c..b7e33e69 100644 --- a/test/default/generichash2.c +++ b/test/default/generichash2.c @@ -13,7 +13,8 @@ main(void) size_t h, i, j; assert(crypto_generichash_statebytes() >= sizeof *st); - st = sodium_malloc(crypto_generichash_statebytes()); + st = (crypto_generichash_state *) + sodium_malloc(crypto_generichash_statebytes()); for (h = 0; h < crypto_generichash_KEYBYTES_MAX; ++h) { k[h] = (unsigned char) h; }