Skip to content

Commit

Permalink
Fix bitwise 'and' operators to logical ones
Browse files Browse the repository at this point in the history
  • Loading branch information
k-ujihara committed Oct 13, 2018
1 parent 156b407 commit 1cd0a7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public DescriptorValue calculate(IAtomContainer container) {
if (!container.getAtom(i).getSymbol().equals("H")) {
a++;
}
if (!container.getAtom(i).getSymbol().equals("H") & !container.getAtom(i).getSymbol().equals("C")) {
if (!container.getAtom(i).getSymbol().equals("H") && !container.getAtom(i).getSymbol().equals("C")) {
h++;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public DescriptorValue calculate(IAtomContainer container) {
|| Math.abs(container.getAtom(i).getFormalCharge()) >= 1
|| container.getAtom(i).getFlag(CDKConstants.ISAROMATIC)
|| container.getAtom(i).getSymbol().equals("N") || container.getAtom(i).getSymbol().equals("O"))
& !container.getAtom(i).getFlag(CDKConstants.VISITED)) {
&& !container.getAtom(i).getFlag(CDKConstants.VISITED)) {
//logger.debug("...... -> Accepted");
startSphere = new ArrayList<IAtom>();
path = new ArrayList<IAtom>();
Expand Down

0 comments on commit 1cd0a7a

Please sign in to comment.