From 83778bdf7ee5040fe1114ab4cad59eb374a8719f Mon Sep 17 00:00:00 2001 From: vinayyadav3016 Date: Tue, 15 Oct 2024 09:14:36 +0530 Subject: [PATCH] reverting changes since it was causing gcc compilation failed with useless cast --- include/fmt/base.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index f52dcb578bd2..2144417673bf 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -727,8 +727,7 @@ class basic_specs { char fill_data_[max_fill_size] = {' '}; FMT_CONSTEXPR void set_fill_size(size_t size) { - data_ = static_cast((data_ & ~fill_size_mask) | - (size << fill_size_shift)); + data_ = (data_ & ~fill_size_mask) | (size << fill_size_shift); } public: