mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-05 02:47:00 +08:00
textord/cjkpitch: Fix mismatch between format string and argument
size_t would require a different format string. Here an unsigned int is sufficient in both cases, so use that. This error was found by lgtm, see https://lgtm.com/projects/g/tesseract-ocr/tesseract/. Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
2cc7839af7
commit
08e25d41b7
@ -682,8 +682,8 @@ void FPRow::DebugOutputResult(int row_index) {
|
||||
real_row_->space_size, real_row_->space_threshold,
|
||||
real_row_->xheight);
|
||||
|
||||
for (size_t i = 0; i < num_chars(); i++) {
|
||||
tprintf("Char %d: is_final=%d is_good=%d num_blobs=%d: ",
|
||||
for (unsigned i = 0; i < num_chars(); i++) {
|
||||
tprintf("Char %u: is_final=%d is_good=%d num_blobs=%d: ",
|
||||
i, is_final(i), is_good(i), character(i)->num_blobs());
|
||||
box(i).print();
|
||||
}
|
||||
@ -1078,7 +1078,7 @@ void compute_fixed_pitch_cjk(ICOORD page_tr,
|
||||
return;
|
||||
}
|
||||
|
||||
size_t iteration = 0;
|
||||
unsigned iteration = 0;
|
||||
do {
|
||||
analyzer.MergeFragments();
|
||||
analyzer.FinalizeLargeChars();
|
||||
@ -1087,7 +1087,7 @@ void compute_fixed_pitch_cjk(ICOORD page_tr,
|
||||
} while (analyzer.Pass2Analyze() && iteration < analyzer.max_iteration());
|
||||
|
||||
if (textord_debug_pitch_test) {
|
||||
tprintf("compute_fixed_pitch_cjk finished after %d iteration (limit=%d)\n",
|
||||
tprintf("compute_fixed_pitch_cjk finished after %u iteration (limit=%u)\n",
|
||||
iteration, analyzer.max_iteration());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user