diff --git a/src/template.c b/src/template.c index 9077a74..c368ba7 100644 --- a/src/template.c +++ b/src/template.c @@ -195,7 +195,13 @@ main(void) (uintmax_t) (sizeof(SAMPLE_TYPE) / sizeof(uint8_t))); exit(EXIT_FAILURE); } - const size_t MAX = (PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE; + const size_t MAX = +#if BLOCK_SIZE > 0 + (PRODUCT + (BLOCK_SIZE - 1)) / BLOCK_SIZE +#else + 0 +#endif + ; size_t w = 0; for (size_t seq = 0; seq < MAX; seq++) {