C++ compat

This commit is contained in:
Frank Denis 2017-07-28 18:08:10 +02:00
parent fb739acd7b
commit dc2c68067b

View File

@ -578,7 +578,7 @@ initialize(argon2_instance_t *instance, argon2_context *context)
/* 1. Memory allocation */ /* 1. Memory allocation */
if ((instance->pseudo_rands = if ((instance->pseudo_rands = (uint64_t *)
malloc(sizeof(uint64_t) * instance->segment_length)) == NULL) { malloc(sizeof(uint64_t) * instance->segment_length)) == NULL) {
return ARGON2_MEMORY_ALLOCATION_ERROR; return ARGON2_MEMORY_ALLOCATION_ERROR;
} }