Skip to content

Commit

Permalink
typo update
Browse files Browse the repository at this point in the history
  • Loading branch information
kemin711 committed Jan 14, 2017
1 parent 615cb05 commit d16ba91
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Binary file modified orpara-0.1.0.tar.gz
Binary file not shown.
10 changes: 7 additions & 3 deletions src/bioseq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,10 +553,14 @@ string bioseq::substr(int b, int e) const {
}

string bioseq::substring(const int b, const int len) const throw (bioseqexception) {
if (b>= (int)length() || b < 0) {
cerr << "seq: " << seq << "\nb,len: " << b << ',' << len << endl;
if ((size_t)b >= length()) {
cerr << "seq: " << seq << "\nb,len: " << b << ',' << len
<< " b is greater than sequence length: " << length() << endl;
throw bioseqexception("bioseq::substring start index: " + itos(b)
+ " out of range inside substring(b, len)");
+ " greater than seqlength");
}
else if (b < 0) {
throw bioseqexception("b is negative inside bioseq::substring");
}
return seq.substr(b, len);
}
Expand Down

0 comments on commit d16ba91

Please sign in to comment.