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));