repaired signed/unsigned issue

This commit is contained in:
Wolfgang Gahr 2019-12-01 16:22:17 +01:00
parent 2e3d9a756e
commit 2e84218655

View File

@ -1585,7 +1585,7 @@ namespace cxxopts
++current; ++current;
++addNewLine; ++addNewLine;
} }
if (addNewLine == 0 && current - startLine >= width) if (addNewLine == 0 && current >= startLine + width)
{ {
if (lastSpace != startLine) if (lastSpace != startLine)
{ {