| 226 | |
| 227 | template <typename Char> |
| 228 | void check_sign(const Char *&s, const Arg &arg) { |
| 229 | char sign = static_cast<char>(*s); |
| 230 | require_numeric_argument(arg, sign); |
| 231 | if (arg.type == Arg::UINT || arg.type == Arg::ULONG_LONG) { |
| 232 | FMT_THROW(fmt::FormatError(fmt::format( |
| 233 | "format specifier '{}' requires signed argument", sign))); |
| 234 | } |
| 235 | ++s; |
| 236 | } |
| 237 | |
| 238 | // Checks if an argument is a valid printf width specifier and sets |
| 239 | // left alignment if it is negative. |
no test coverage detected