diff --git a/src/classify/cluster.cpp b/src/classify/cluster.cpp index fd889780..4143bbbb 100644 --- a/src/classify/cluster.cpp +++ b/src/classify/cluster.cpp @@ -3238,10 +3238,10 @@ static bool MultipleCharSamples(CLUSTERER *Clusterer, CLUSTER *Cluster, float Ma InitSampleSearch(SearchState, Cluster); while ((Sample = NextSample(&SearchState)) != nullptr) { CharID = Sample->CharID; - if (CharFlags[CharID] == false) { + if (CharFlags[CharID] == 0) { CharFlags[CharID] = true; } else { - if (CharFlags[CharID] == true) { + if (CharFlags[CharID] == 1) { NumIllegalInCluster++; CharFlags[CharID] = ILLEGAL_CHAR; }