mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 04:33:20 +08:00
Fix msvc warning.
This commit is contained in:
parent
07d50ef4a3
commit
1bc983a0dc
@ -3238,10 +3238,10 @@ static bool MultipleCharSamples(CLUSTERER *Clusterer, CLUSTER *Cluster, float Ma
|
|||||||
InitSampleSearch(SearchState, Cluster);
|
InitSampleSearch(SearchState, Cluster);
|
||||||
while ((Sample = NextSample(&SearchState)) != nullptr) {
|
while ((Sample = NextSample(&SearchState)) != nullptr) {
|
||||||
CharID = Sample->CharID;
|
CharID = Sample->CharID;
|
||||||
if (CharFlags[CharID] == false) {
|
if (CharFlags[CharID] == 0) {
|
||||||
CharFlags[CharID] = true;
|
CharFlags[CharID] = true;
|
||||||
} else {
|
} else {
|
||||||
if (CharFlags[CharID] == true) {
|
if (CharFlags[CharID] == 1) {
|
||||||
NumIllegalInCluster++;
|
NumIllegalInCluster++;
|
||||||
CharFlags[CharID] = ILLEGAL_CHAR;
|
CharFlags[CharID] = ILLEGAL_CHAR;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user