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 { do {
crypto_core_salsa20(output + pos, in, secondkey, c); crypto_core_salsa20(output + pos, in, secondkey, c);
pos += 64; pos += 64;
} while (++in[8]); in[8]++;
} while (++in[9]); } while (in[8] != 0);
in[9]++;
} while (in[9] != 0);
crypto_hash_sha256(h, output, output_len); crypto_hash_sha256(h, output, output_len);