From 7fe11c418cf04d3e0bed86214b2260b016d213db Mon Sep 17 00:00:00 2001 From: Christian Rapp <0x2a@posteo.org> Date: Sun, 5 Jun 2016 11:57:28 +0200 Subject: [PATCH] Add a static cast for int to bool Signed-off-by: Christian Rapp <0x2a@posteo.org> --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 28fcdf0..846be4e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -92,7 +92,7 @@ int main(int argc, char *argv[]) } std::shared_ptr prnt = - std::make_shared(parser.count("quiet")); + std::make_shared(static_cast(parser.count("quiet"))); std::shared_ptr params = nullptr; init_mandel_parameters(params, parser);