Skip to content

Commit

Permalink
fix unstable step parse error that vg's int ids never triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
glennhickey committed Apr 28, 2022
1 parent 13d640b commit b390d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/vg/io/gafkluge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ inline void parse_gaf_record(const std::string& gaf_line, GafRecord& gaf_record)
GafStep step;
pos = buffer.find_first_of("><", pos);
next = buffer.find_first_of("><", pos + 1);
std::string step_token = buffer.substr(pos, next != std::string::npos ? next - pos + 1 : std::string::npos);
std::string step_token = buffer.substr(pos, next != std::string::npos ? next - pos : std::string::npos);
size_t colon = step_token.find_first_of(':');
step.is_reverse = step_token[0] == '<';
if (colon == std::string::npos) {
Expand Down

0 comments on commit b390d7f

Please sign in to comment.