Skip to content

Commit

Permalink
prefer pre-increment
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic-mahe committed Jan 11, 2025
1 parent a396fb3 commit 6d89800
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/vsearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ auto args_get_ee_cutoffs(char * arg) -> void
{
if (arg[i] == ',')
{
commas++;
++commas;
}
}

Expand All @@ -501,7 +501,7 @@ auto args_get_ee_cutoffs(char * arg) -> void

if (*s == ',')
{
s++;
++s;
}
else if (*s == 0)
{
Expand Down Expand Up @@ -591,7 +591,7 @@ auto args_get_gap_penalty_string(char * arg, int is_open) -> void
else if (*p == '*')
{
pen = 1000;
p++;
++p;
}
else
{
Expand Down Expand Up @@ -633,12 +633,12 @@ auto args_get_gap_penalty_string(char * arg, int is_open) -> void
fatal("Invalid char '%.1s' in gap penalty string", p);
break;
}
p++;
++p;
}

if (*p == '/')
{
p++;
++p;
}

if (set_E and (set_L or set_R))
Expand Down Expand Up @@ -4527,7 +4527,7 @@ auto args_init(int argc, char ** argv, struct Parameters & parameters) -> void
{
if (options_selected[command_options[i]])
{
commands++;
++commands;
k = i;
}
}
Expand Down Expand Up @@ -4570,11 +4570,11 @@ auto args_init(int argc, char ** argv, struct Parameters & parameters) -> void
ok = true;
break;
}
j++;
++j;
}
if (not ok)
{
invalid_options++;
++invalid_options;

if (invalid_options == 1)
{
Expand All @@ -4598,7 +4598,7 @@ auto args_init(int argc, char ** argv, struct Parameters & parameters) -> void
for(int j = 1; valid_options[k][j] >= 0; j++)
{
fprintf(stderr, " --%s", long_options[valid_options[k][j]].name);
count++;
++count;
}
if (not count)
{
Expand Down

0 comments on commit 6d89800

Please sign in to comment.