From 9e183646c57bd50d755fff467d4d436c99fcedaa Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Sat, 23 Dec 2017 19:18:19 -0600 Subject: [PATCH] A few fixes for failing tests --- include/CLI/App.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 39900c6d..038f3929 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -842,9 +842,9 @@ class App { value = "false"; } - if(value.size() != 0) { + if(!value.empty()) { if(write_description && opt->has_description()) { - if(out.tellp() != 0) { + if(static_cast(out.tellp()) != 0) { out << std::endl; } out << "; " << detail::fix_newlines("; ", opt->get_description()) << std::endl;