diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index 277476d5..2b2c8bcd 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -530,7 +530,7 @@ public: /// Print a nice error message and return the exit code int exit(const Error& e) const { - if(e.exit_code != ExitCodes::Success) { + if(e.exit_code != static_cast(ExitCodes::Success)) { std::cerr << "ERROR: "; std::cerr << e.what() << std::endl; if(e.print_help)