Silence warnings

This commit is contained in:
李通洲
2022-10-23 17:54:19 +08:00
parent ed85b8249a
commit e59d64513f
+1 -1
View File
@@ -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)