Skip to content

Commit

Permalink
fixes #39
Browse files Browse the repository at this point in the history
  • Loading branch information
ishmeals committed Sep 22, 2024
1 parent 4012378 commit f3fba77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/digest/digester.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ template <BadCharPolicy P> class Digester {
* @throws BadConstructionException thrown if the starting position is
* greater than the length of the string
*/
void new_seq(const char *seq, size_t len, size_t start) {
virtual void new_seq(const char *seq, size_t len, size_t start) {
this->seq = seq;
this->len = len;
this->offset = 0;
Expand All @@ -231,7 +231,7 @@ template <BadCharPolicy P> class Digester {
* @throws BadConstructionException thrown if the starting position is
* greater than the length of the string
*/
void new_seq(const std::string &seq, size_t pos) {
virtual void new_seq(const std::string &seq, size_t pos) {
new_seq(seq.c_str(), seq.size(), pos);
}

Expand Down
10 changes: 10 additions & 0 deletions include/digest/window_minimizer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,16 @@ template <BadCharPolicy P, class T> class WindowMin : public Digester<P> {
}
}

void new_seq(const char *seq, size_t len, size_t start) override {
ds = T(large_window);
Digester<P>::new_seq(seq, len, start);
}

void new_seq(const std::string &seq, size_t pos) override {
ds = T(large_window);
Digester<P>::new_seq(seq.c_str(), seq.size(), pos);
}

/**
*
* @return unsigned, the value of large_window
Expand Down

0 comments on commit f3fba77

Please sign in to comment.