Fix msvc warning.

This commit is contained in:
Egor Pugin 2024-11-22 17:38:34 +03:00
parent 07d50ef4a3
commit 1bc983a0dc

View File

@ -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;
}