1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00

Old tcc versions miscompile while (++in[x])

So, let's just keep things readable, even for compilers.
This commit is contained in:
Frank Denis 2017-09-15 12:58:47 +02:00
parent 10edd16b40
commit ca43a12683

View File

@ -47,8 +47,10 @@ main(void)
do {
crypto_core_salsa20(output + pos, in, secondkey, c);
pos += 64;
} while (++in[8]);
} while (++in[9]);
in[8]++;
} while (in[8] != 0);
in[9]++;
} while (in[9] != 0);
crypto_hash_sha256(h, output, output_len);