template.c: move idx
to the loop scope
This commit is contained in:
parent
759fa6df4a
commit
6cf64cc94a
@ -239,8 +239,7 @@ main(void)
|
||||
;
|
||||
|
||||
#if SEQUENTIAL_MODE
|
||||
size_t idx = 0;
|
||||
for (; idx < BLOCK_SIZE && time < PRODUCT; idx++,
|
||||
for (size_t idx = 0; idx < BLOCK_SIZE && time < PRODUCT; idx++,
|
||||
time++) {
|
||||
#else
|
||||
for (size_t time = 0; time < PRODUCT; time++) {
|
||||
|
Loading…
Reference in New Issue
Block a user