mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
clang-tidy: readability-simplify-boolean-expr (#4639)
This commit is contained in:
2
External/GA/ga/StringChromosome.cpp
vendored
2
External/GA/ga/StringChromosome.cpp
vendored
@@ -26,7 +26,7 @@ int StringChromosome<bool, BinaryStringChromosomePolicy>::decodeToInt(
|
||||
int mask = 1, result = 0;
|
||||
bool *ptr = string.get() + start;
|
||||
for (int i = 0; i < nBits; i++, mask <<= 1) {
|
||||
if (*ptr++ == true) {
|
||||
if (*ptr++) {
|
||||
result |= mask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user