Skip to content

Commit

Permalink
readability-implicit-bool-conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-mahe committed Jan 21, 2025
1 parent b8e0f43 commit 1161a8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vsearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4680,7 +4680,7 @@ auto args_init(int argc, char ** argv, struct Parameters & parameters) -> void
if (opt_wordlength == 0)
{
/* set default word length */
if (opt_orient)
if (opt_orient != nullptr)
{
opt_wordlength = 12;
}
Expand Down Expand Up @@ -4741,7 +4741,7 @@ auto args_init(int argc, char ** argv, struct Parameters & parameters) -> void
fatal("The argument to --sample_size must not be negative");
}

if (((parameters.opt_relabel ? 1 : 0) +
if ((((parameters.opt_relabel != nullptr) ? 1 : 0) +
opt_relabel_md5 + opt_relabel_self + opt_relabel_sha1) > 1)
{
fatal("Specify only one of --relabel, --relabel_self, --relabel_sha1, or --relabel_md5");
Expand Down

0 comments on commit 1161a8b

Please sign in to comment.