ropensci / tesseract

Bindings to Tesseract OCR engine for R
https://docs.ropensci.org/tesseract
244 stars 26 forks source link

comparison of different sizes #67

Closed pachadotdev closed 3 months ago

pachadotdev commented 3 months ago

I still cannot install it in the clusterm, but I tried in my laptop and after updating Rcpp to 1.0.13 it works but it gives me a warning

tesseract.cpp: In function ‘Rcpp::List engine_info_internal(TessPtr)’:
   tesseract.cpp:115:23: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
     115 |   for(size_t i = 0; i < langs.size(); i++)
         |                     ~~^~~~~~~~~~~~~~
   tesseract.cpp:120:23: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
     120 |   for(size_t i = 0; i < langs.size(); i++)
         |                     ~~^~~~~~~~~~~~~~