Fix crash with fmt

pull/813/head
Thorben Günther 2020-08-10 20:53:29 +02:00
parent fb56f89ced
commit 9b41b95934
No known key found for this signature in database
GPG Key ID: 415CD778D8C5AFED
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ namespace fmt {
constexpr auto parse(ParseContext& ctx) -> decltype (ctx.begin()) {
auto it = ctx.begin(), end = ctx.end();
if (it != end && *it == ':') ++it;
if (*it == '>' || *it == '<' || *it == '=') {
if (it && (*it == '>' || *it == '<' || *it == '=')) {
spec = *it;
++it;
}