fmt::format fixed

This commit is contained in:
Nekotekina 2015-01-22 02:45:50 +03:00
parent ec3c899955
commit 07a2e0b55a
2 changed files with 17 additions and 77 deletions

View file

@ -96,9 +96,9 @@ size_t fmt::detail::get_fmt_len(const char* fmt, size_t len)
fmt += 2;
len -= 2;
if (fmt[1] == '1')
if (fmt[0] == '1')
{
assert(len >= 3 && fmt[2] - '0' < 7);
assert(len >= 3 && fmt[1] - '0' < 7);
res++;
fmt++;
len--;