diff --git a/src/template.c b/src/template.c index 4996236..121ef08 100644 --- a/src/template.c +++ b/src/template.c @@ -204,7 +204,8 @@ main(void) if (BLOCK_SIZE < 1) { printf("The block size %" PRIuMAX " is too small, should be at least " "%" PRIuMAX " bytes\n", (uintmax_t) BLOCK_SIZE_BYTES, - (uintmax_t) (sizeof(SAMPLE_TYPE) / sizeof(uint8_t))); + (uintmax_t) ((sizeof(SAMPLE_TYPE) + sizeof(uint8_t) - 1) / + sizeof(uint8_t))); return EXIT_FAILURE; }