biod.pnpi.spb.ru
/
alexxy
/
gromacs-colorvec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0496a46
)
- fixed possible infinite loop
author
Anatoly
<Titov_AI@pnpi.nrcki.ru>
Wed, 21 Oct 2020 10:55:43 +0000
(13:55 +0300)
committer
Anatoly
<Titov_AI@pnpi.nrcki.ru>
Wed, 21 Oct 2020 10:55:43 +0000
(13:55 +0300)
src/colorvec.cpp
patch
|
blob
|
history
diff --git
a/src/colorvec.cpp
b/src/colorvec.cpp
index b3e634c418aed2ceec0597de04e7223b24d60c3e..4e450159764110e792b2bef70473a216c26101fc 100644
(file)
--- a/
src/colorvec.cpp
+++ b/
src/colorvec.cpp
@@
-106,12
+106,12
@@
void betaListDigestion(const std::string &inputFile, std::vector< std::vector< s
std::string line;
getline(file, line); // считываем число в первой строке - кол-во осмысленных элементов в строках - нам не нужно
getline(file, line);
- if (line.size() >
0
) {
+ if (line.size() >
3
) {
do {
inputBL.resize(inputBL.size() + 1);
parseBetaListDATLine(line, inputBL.back());
getline(file, line);
- } while (line.size() >
0
);
+ } while (line.size() >
3
);
} else {
throw "DSSP DAT FILE IS EMPTY";
}