From c40acdd161458d731013169fb40439101316d314 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sat, 27 Jan 2024 14:57:56 +0300 Subject: [PATCH] template.c: use `malloc` in sequential mode --- src/template.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/template.c b/src/template.c index cad211f..09818b7 100644 --- a/src/template.c +++ b/src/template.c @@ -208,11 +208,11 @@ main(void) do { #endif // * allocate heap for sample data - SAMPLE_TYPE* buffer = calloc( + SAMPLE_TYPE* buffer = #if SEQUENTIAL_MODE - calc_block_size, + malloc((size_t) calc_block_size * #else - PRODUCT, + calloc(PRODUCT, #endif sizeof(SAMPLE_TYPE));