Optimize counting

This commit is contained in:
Victor Zverovich
2019-10-21 06:51:21 -07:00
parent 6498bc6d31
commit d39ebf3ff2
6 changed files with 23 additions and 26 deletions

View File

@@ -469,8 +469,7 @@ OutputIt basic_printf_context<OutputIt, Char>::format() {
// Parse argument index, flags and width.
unsigned arg_index = parse_header(it, end, specs);
if (arg_index == 0)
on_error("argument index out of range");
if (arg_index == 0) on_error("argument index out of range");
// Parse precision.
if (it != end && *it == '.') {