Skip to content

Commit

Permalink
Fix gcc10 warning in KDTreeLinkerAlgo
Browse files Browse the repository at this point in the history
Switched to using bitwise operation instead of multiplication.
  • Loading branch information
Dr15Jones committed Aug 14, 2020
1 parent eedcbd0 commit b169da8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CommonTools/RecoAlgos/interface/KDTreeLinkerAlgo.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ void KDTreeLinkerAlgo<DATA, DIM>::recSearch(int current, const KDTreeBox<DIM> &t
bool isInside = true;
for (unsigned i = 0; i < DIM; ++i) {
float dimCurr = nodePool_.dims[i][current];
isInside *= (dimCurr >= trackBox.dimmin[i]) & (dimCurr <= trackBox.dimmax[i]);
isInside &= (dimCurr >= trackBox.dimmin[i]) & (dimCurr <= trackBox.dimmax[i]);
}
if (isInside) {
closestNeighbour->push_back(nodePool_.data[current]);
Expand Down

0 comments on commit b169da8

Please sign in to comment.