Skip to content

Commit 18020fa

Browse files
committed
fix
1 parent 7905cad commit 18020fa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/checkio.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,8 @@ void CheckIOImpl::checkFormatString(const Token * const tok,
841841
}
842842
++i;
843843
}
844+
while (width[0] == '0')
845+
width = width.substr(1);
844846
auto bracketBeg = formatString.cend();
845847
if (i != formatString.cend() && *i == '[') {
846848
bracketBeg = i;

0 commit comments

Comments
 (0)