Skip to content
Snippets Groups Projects
Commit 960b9ad9 authored by Studer Gabriel's avatar Studer Gabriel
Browse files

index bug...

parent c3cdd734
No related branches found
No related tags found
No related merge requests found
...@@ -165,7 +165,7 @@ HMMPtr HMM::Extract(uint from, uint to){ ...@@ -165,7 +165,7 @@ HMMPtr HMM::Extract(uint from, uint to){
throw std::runtime_error("Second index must be bigger than first one!"); throw std::runtime_error("Second index must be bigger than first one!");
} }
if(to >= this->size()){ if(to > this->size()){
throw std::runtime_error("Invalid index!"); throw std::runtime_error("Invalid index!");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment