Skip to content

Commit

Permalink
fixed strip bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nloyfer committed Jul 15, 2024
1 parent 019348f commit 08aaf77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pat2beta/mask_pat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ int proc_line(std::vector<std::string> tokens, std::set<int> &sites_to_hide) {
}
tokens[2] = pattern;
// strip pat and ignore this read if it's all dots
if (strip_pat(tokens[2]) < 0) { return 0; }
int pos = strip_pat(tokens[2]);
if (pos < 0) { return 0; }

tokens[1] = std::to_string(pos + std::stoi(tokens[1]));
output_vec(tokens);
return 0;
}
Expand Down

0 comments on commit 08aaf77

Please sign in to comment.