Skip to content

Commit

Permalink
clang fix
Browse files Browse the repository at this point in the history
  • Loading branch information
even1024 committed Sep 12, 2023
1 parent 2420cd1 commit e1696ba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions api/tests/integration/ref/formats/smiles.py.out
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,6 @@ chemaxon:
CCCC |Sg:n:0,1,2::ht|
chemaxon:
CCCCC |Sg:n:1,2,3::hh|
*** Atropisomers ***
atropisomer:
C1=CC=C(C)C(C2=C(N)C=C(C)C=C2)=C1O |o1:5,r,wU:5.4|
3 changes: 2 additions & 1 deletion core/indigo-core/molecule/src/smiles_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void SmilesLoader::_readOtherStuff()
int idx = _scanner.readUnsigned();
if (_bmol->stereocenters.exists(idx))
_bmol->stereocenters.setType(idx, MoleculeStereocenters::ATOM_AND, groupno);
else
else
_bmol->addStereocenters(idx, MoleculeStereocenters::ATOM_AND, groupno, false);

if (_scanner.lookNext() == ',')
Expand Down Expand Up @@ -2439,6 +2439,7 @@ void SmilesLoader::_loadMolecule()

_parseMolecule();
_loadParsedMolecule();
_validateStereoCenters();
}

void SmilesLoader::_readBond(Array<char>& bond_str, _BondDesc& bond, std::unique_ptr<QueryMolecule::Bond>& qbond)
Expand Down

0 comments on commit e1696ba

Please sign in to comment.