Update src/api/tesseractmain.cpp

Co-authored-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Egor Pugin 2020-12-29 00:22:28 +03:00 committed by GitHub
parent c8be22f313
commit f190c85682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -301,7 +301,7 @@ static void SetVariablesFromCLArgs(tesseract::TessBaseAPI* api, int argc,
static void PrintLangsList(tesseract::TessBaseAPI* api) {
std::vector<std::string> languages;
api->GetAvailableLanguagesAsVector(&languages);
printf("List of available languages (%d):\n", languages.size());
printf("List of available languages (%zu):\n", languages.size());
for (const auto& language : languages) {
printf("%s\n", language.c_str());
}