From 729644dd601633ebd4dd48e230644933190e3ea7 Mon Sep 17 00:00:00 2001 From: gyulamad Date: Wed, 12 Jul 2023 18:59:42 +0100 Subject: [PATCH] fixing sign compare error --- include/argparse/argparse.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/argparse/argparse.hpp b/include/argparse/argparse.hpp index a779e014..539bdf72 100644 --- a/include/argparse/argparse.hpp +++ b/include/argparse/argparse.hpp @@ -683,7 +683,7 @@ class Argument { auto hspace = " "; // minimal space between name and help message stream << name_stream.str(); std::string_view help_view(argument.m_help); - while ((pos = argument.m_help.find('\n', prev)) != std::string::npos) { + while ((pos = argument.m_help.find('\n', prev)) != (signed)std::string::npos) { auto line = help_view.substr(prev, pos - prev + 1); if (first_line) { stream << hspace << line;