Skip to content

Commit 5cc8c05

Browse files
committed
ccmain: Replace Tesseract data types by POSIX data types
Signed-off-by: Stefan Weil <sw@weilnetz.de>
1 parent e7794c0 commit 5cc8c05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ccmain/control.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ void Tesseract::rejection_passes(PAGE_RES* page_res,
641641
word_char_quality(word, page_res_it.row()->row,
642642
&all_char_quality, &accepted_all_char_quality);
643643
stats_.doc_char_quality += all_char_quality;
644-
uinT8 permuter_type = word->best_choice->permuter();
644+
uint8_t permuter_type = word->best_choice->permuter();
645645
if ((permuter_type == SYSTEM_DAWG_PERM) ||
646646
(permuter_type == FREQ_DAWG_PERM) ||
647647
(permuter_type == USER_DAWG_PERM)) {
@@ -1881,7 +1881,7 @@ BOOL8 Tesseract::check_debug_pt(WERD_RES *word, int location) {
18811881
static void find_modal_font( //good chars in word
18821882
STATS *fonts, //font stats
18831883
inT16 *font_out, //output font
1884-
inT8 *font_count //output count
1884+
int8_t *font_count //output count
18851885
) {
18861886
inT16 font; //font index
18871887
inT32 count; //pile couat
@@ -1999,7 +1999,7 @@ void Tesseract::font_recognition_pass(PAGE_RES* page_res) {
19991999
}
20002000
}
20012001
inT16 doc_font; // modal font
2002-
inT8 doc_font_count; // modal font
2002+
int8_t doc_font_count; // modal font
20032003
find_modal_font(&doc_fonts, &doc_font, &doc_font_count);
20042004
if (doc_font_count == 0)
20052005
return;

ccmain/tfacepp.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@ void Tesseract::recog_word(WERD_RES *word) {
6969
}
7070
if (tessedit_override_permuter) {
7171
/* Override the permuter type if a straight dictionary check disagrees. */
72-
uinT8 perm_type = word->best_choice->permuter();
72+
uint8_t perm_type = word->best_choice->permuter();
7373
if ((perm_type != SYSTEM_DAWG_PERM) &&
7474
(perm_type != FREQ_DAWG_PERM) && (perm_type != USER_DAWG_PERM)) {
75-
uinT8 real_dict_perm_type = dict_word(*word->best_choice);
75+
uint8_t real_dict_perm_type = dict_word(*word->best_choice);
7676
if (((real_dict_perm_type == SYSTEM_DAWG_PERM) ||
7777
(real_dict_perm_type == FREQ_DAWG_PERM) ||
7878
(real_dict_perm_type == USER_DAWG_PERM)) &&

0 commit comments

Comments
 (0)