From 6cf64cc94a49ef11ed253c57171b008f898d1dfd Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Wed, 10 Apr 2024 23:32:58 +0300 Subject: [PATCH] template.c: move `idx` to the loop scope --- src/template.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/template.c b/src/template.c index 6ca6cb7..8e40942 100644 --- a/src/template.c +++ b/src/template.c @@ -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++) {