C++ compat

This commit is contained in:
Frank Denis
2017-12-21 22:35:02 +01:00
parent 8a2833f01a
commit 6a60818982
+2 -1
View File
@@ -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;
}