Commit de71db6d authored by Victor Zverovich's avatar Victor Zverovich

Fix asan error (#977)

parent b180b391
...@@ -1952,8 +1952,8 @@ FMT_CONSTEXPR const Char *parse_arg_id( ...@@ -1952,8 +1952,8 @@ FMT_CONSTEXPR const Char *parse_arg_id(
return handler.on_error("invalid format string"), begin; return handler.on_error("invalid format string"), begin;
auto it = begin; auto it = begin;
do { do {
c = *++it; ++it;
} while (it != end && (is_name_start(c) || ('0' <= c && c <= '9'))); } while (it != end && (is_name_start(c = *it) || ('0' <= c && c <= '9')));
handler(basic_string_view<Char>(begin, to_unsigned(it - begin))); handler(basic_string_view<Char>(begin, to_unsigned(it - begin)));
return it; return it;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment