From 7edbd99775416a32c88acf8e9379518436905f02 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sat, 21 Nov 2020 15:19:45 +0100 Subject: Support gcc 10 and clang 11 --- programopts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'programopts.cpp') diff --git a/programopts.cpp b/programopts.cpp index aee8b05..611bbea 100644 --- a/programopts.cpp +++ b/programopts.cpp @@ -40,7 +40,7 @@ ProgramOpts::~ProgramOpts() void ProgramOpts::process() { - for (size_t i = 1; i < m_pimpl->m_argc; i++) { + for (int i = 1; i < m_pimpl->m_argc; i++) { std::string arg{ m_pimpl->m_argv[i] }; if (arg.size() == 0) throw std::runtime_error("Empty option #"s + std::to_string(i)); -- cgit v1.2.3