Fix q format spec (#1811)

This commit is contained in:
Rangi authored and GitHub committed 2025-08-29 14:23:49 -04:00
1 parent 02b880e1b0
commit 85176ef10a
5 files changed
+16 -7

No files matched your search

+3 -3
View File
@@ -77,9 +77,9 @@ void FormatSpec::useCharacter(int c) {
}
return;
// width
// frac
case '.':
if (state > FORMAT_WIDTH) {
if (state >= FORMAT_FRAC) {
break;
}
state = FORMAT_FRAC;
@@ -88,7 +88,7 @@ void FormatSpec::useCharacter(int c) {
// prec
case 'q':
if (state > FORMAT_PREC) {
if (state >= FORMAT_PREC) {
break;
}
state = FORMAT_PREC;