Skip to content

Commit

Permalink
Fix warning about signed integer. Fixes #67 (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
pachadotdev committed Aug 4, 2024
1 parent 1f83593 commit 7688528
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ rmarkdown
spanish
tessdata
toc
utrecht
VignetteEncoding
VignetteEngine
VignetteIndexEntry
4 changes: 2 additions & 2 deletions src/tesseract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ Rcpp::List engine_info_internal(TessPtr ptr){
GenericVector<STRING> langs;
api->GetAvailableLanguagesAsVector(&langs);
Rcpp::CharacterVector available = Rcpp::CharacterVector::create();
for(size_t i = 0; i < langs.size(); i++)
for (int i = 0; i < langs.size(); i++)
available.push_back(langs.getorat(i).c_str());
langs.clear();
api->GetLoadedLanguagesAsVector(&langs);
Rcpp::CharacterVector loaded = Rcpp::CharacterVector::create();
for(size_t i = 0; i < langs.size(); i++)
for (int i = 0; i < langs.size(); i++)
loaded.push_back(langs.getorat(i).c_str());
return Rcpp::List::create(
Rcpp::_["datapath"] = api->GetDatapath(),
Expand Down

0 comments on commit 7688528

Please sign in to comment.