From 2e84218655cec9f43edc19e3bfb33cb51abb0f62 Mon Sep 17 00:00:00 2001 From: Wolfgang Gahr Date: Sun, 1 Dec 2019 16:22:17 +0100 Subject: [PATCH] repaired signed/unsigned issue --- include/cxxopts.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cxxopts.hpp b/include/cxxopts.hpp index f5f2af1..e9ff59e 100644 --- a/include/cxxopts.hpp +++ b/include/cxxopts.hpp @@ -1585,7 +1585,7 @@ namespace cxxopts ++current; ++addNewLine; } - if (addNewLine == 0 && current - startLine >= width) + if (addNewLine == 0 && current >= startLine + width) { if (lastSpace != startLine) {