From 7efc6b77f572258a841dc7839298af112196afcc Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 19 May 2024 13:21:09 +0300 Subject: [PATCH] template.c: fix MAX calculation --- src/template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template.c b/src/template.c index d0e6f81..38c8f85 100644 --- a/src/template.c +++ b/src/template.c @@ -226,7 +226,7 @@ main(void) return EXIT_FAILURE; } - const size_t MAX = (PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE; + const size_t MAX = (GEN_LENGTH + (BLOCK_SIZE - 1)) / BLOCK_SIZE; #endif // * allocate heap for sample data