From 960b9ad9cb10b40bc8a57d2e56007a9b69a0314d Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Mon, 31 Aug 2015 18:24:47 +0200 Subject: [PATCH] index bug... --- modules/seq/base/src/hmm.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/seq/base/src/hmm.cc b/modules/seq/base/src/hmm.cc index fd953d5f5..a89d3cf27 100644 --- a/modules/seq/base/src/hmm.cc +++ b/modules/seq/base/src/hmm.cc @@ -165,7 +165,7 @@ HMMPtr HMM::Extract(uint from, uint to){ 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!"); } -- GitLab