mirror of
https://github.com/fmtlib/fmt.git
synced 2026-05-05 12:04:11 +02:00
Include 128-bit with other signed integers in specifier check
This commit is contained in:
+2
-1
@@ -2819,7 +2819,8 @@ template <typename Handler> class specs_checker : public Handler {
|
||||
FMT_CONSTEXPR void on_sign(sign_t s) {
|
||||
require_numeric_argument();
|
||||
if (is_integral_type(arg_type_) && arg_type_ != type::int_type &&
|
||||
arg_type_ != type::long_long_type && arg_type_ != type::char_type) {
|
||||
arg_type_ != type::long_long_type && arg_type_ != type::int128_type &&
|
||||
arg_type_ != type::char_type) {
|
||||
this->on_error("format specifier requires signed argument");
|
||||
}
|
||||
Handler::on_sign(s);
|
||||
|
||||
Reference in New Issue
Block a user