From fdce91471ef68b44eff4804267eaef4e6943ffbf Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Mon, 1 Mar 2021 22:45:19 +0400 Subject: [PATCH] Fixed clang warning. --- src/hz/format_unit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hz/format_unit.h b/src/hz/format_unit.h index f53d8cb..5d6c0b5 100644 --- a/src/hz/format_unit.h +++ b/src/hz/format_unit.h @@ -110,7 +110,7 @@ inline std::string format_size(uint64_t size, bool use_decimal = false, bool siz C_("file_size", "%s Eibit") }; - const int addn = static_cast(!use_decimal) + (static_cast(size_is_bits) * 2); + const std::size_t addn = static_cast(!use_decimal) + (static_cast(size_is_bits) * 2); if (size >= eb_size) { // exa return hz::string_replace_copy(names[(6 * 4) + addn], "%s",