Skip to content

Commit

Permalink
Fix asan error (#977)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Dec 12, 2018
1 parent b180b39 commit de71db6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -1952,8 +1952,8 @@ FMT_CONSTEXPR const Char *parse_arg_id(
return handler.on_error("invalid format string"), begin;
auto it = begin;
do {
c = *++it;
} while (it != end && (is_name_start(c) || ('0' <= c && c <= '9')));
++it;
} while (it != end && (is_name_start(c = *it) || ('0' <= c && c <= '9')));
handler(basic_string_view<Char>(begin, to_unsigned(it - begin)));
return it;
}
Expand Down

0 comments on commit de71db6

Please sign in to comment.