diff --git a/test/default/core3.c b/test/default/core3.c index 2795266d..d6f7f609 100644 --- a/test/default/core3.c +++ b/test/default/core3.c @@ -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);