Skip to content

Commit

Permalink
Merge pull request #2211 from baoilleach/FixCompileWarning
Browse files Browse the repository at this point in the history
Fix the compiler warning about large object size
  • Loading branch information
ghutchis committed May 8, 2020
2 parents 66042e0 + b14a330 commit cbd4db4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mol.cpp
Expand Up @@ -3167,7 +3167,8 @@ namespace OpenBabel
_c = nullptr;
for (atom = BeginAtom(i);atom;atom = NextAtom(i))
atom->ClearCoordPtr();
_vconf.resize(_vconf.size()-1);
if (_vconf.size() > 0)
_vconf.resize(_vconf.size()-1);
}

if (_c != nullptr)
Expand Down

0 comments on commit cbd4db4

Please sign in to comment.