VS2010 compile fix.

This commit is contained in:
LoRd_MuldeR 2021-04-02 20:04:30 +02:00
parent 469981bef2
commit 80db0ac404
Signed by: mulder
GPG Key ID: 2B5913365F57E03F

View File

@ -223,10 +223,11 @@ static int initialize_state(crypt_state_t *const state, const uint64_t nonce, co
{
uint8_t temp[256U][256U];
size_t r, i;
const int reverse = BOOLIFY(mode);
/* initialize state */
slunkcrypt_bzero(state, sizeof(crypt_state_t));
const int reverse = state->reverse_mode = BOOLIFY(mode);
state->reverse_mode = reverse;
/* set up the wheel permutations */
for (r = 0U; r < 256U; ++r)