diff --git a/format.cc b/format.cc index bcb660a9..093fc7d0 100644 --- a/format.cc +++ b/format.cc @@ -231,7 +231,7 @@ class ArgConverter : public fmt::internal::ArgVisitor, void> { if (sizeof(T) <= sizeof(int)) { if (is_signed) { arg_.type = Arg::INT; - arg_.int_value = static_cast(value); + arg_.int_value = static_cast(static_cast(value)); } else { arg_.type = Arg::UINT; arg_.uint_value =