Implement 'll' specifier.

This commit is contained in:
Victor Zverovich 2014-08-12 08:36:19 -07:00
parent 5614295aa1
commit d3a7039e31

View File

@ -916,7 +916,10 @@ void fmt::internal::PrintfFormatter<Char>::format(
ArgConverter<short>(arg, *s).visit(arg);
break;
case 'l':
ArgConverter<long>(arg, *s).visit(arg);
if (*s == 'l')
ArgConverter<long long>(arg, *++s).visit(arg);
else
ArgConverter<long>(arg, *s).visit(arg);
break;
case 'j':
ArgConverter<intmax_t>(arg, *s).visit(arg);