From f2846228e1c5f880fb555bb8aa9910f351a5aabe Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Mon, 23 Sep 2024 00:50:02 +0300 Subject: [PATCH] C: ensure `uintmax_t` type when printing --- src/template.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/template.c b/src/template.c index 8237fa6..bdb09a6 100644 --- a/src/template.c +++ b/src/template.c @@ -393,7 +393,7 @@ main(void) #endif , _ANSI_CLEAR_STRING, - LOOP_END_MINUS_1 - time, + (uintmax_t) (LOOP_END_MINUS_1 - time), ((long double) time * 100) / (long double) LOOP_END_MINUS_1 #if SEQUENTIAL_MODE , (uintmax_t) seq + 1, (uintmax_t) MAX