From e59d64513f71e7f738a690cc15835a61b3ee6645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Sun, 23 Oct 2022 17:54:19 +0800 Subject: [PATCH] Silence warnings --- src/common/bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/bar.c b/src/common/bar.c index 4b8ae00a3..a8f7c7b62 100644 --- a/src/common/bar.c +++ b/src/common/bar.c @@ -11,7 +11,7 @@ void ffAppendPercentBar(FFinstance* instance, FFstrbuf* buffer, uint8_t percent, // ... // [85%, 95%) prints 9 blocks; // [95%,100%] prints 10 blocks - percent = (percent + 5) / 10; + percent = (uint8_t)(percent + 5) / 10; assert(percent <= 10); if(!instance->config.pipe)