Skip to content

Commit

Permalink
Add a static cast for int to bool
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Rapp <[email protected]>
  • Loading branch information
crapp committed Jun 5, 2016
1 parent 051b3fc commit 7fe11c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ int main(int argc, char *argv[])
}

std::shared_ptr<Printer> prnt =
std::make_shared<Printer>(parser.count("quiet"));
std::make_shared<Printer>(static_cast<bool>(parser.count("quiet")));

std::shared_ptr<FractalParameters> params = nullptr;
init_mandel_parameters(params, parser);
Expand Down

0 comments on commit 7fe11c4

Please sign in to comment.