diff --git a/src/xlsb.cpp b/src/xlsb.cpp index 8ef241f7e..bf0d0fb9f 100644 --- a/src/xlsb.cpp +++ b/src/xlsb.cpp @@ -1680,7 +1680,7 @@ int workbook_bin(std::string filePath, std::string outPath, bool debug) { } if ((size_t)bin.tellg() != end_pos) { - Rprintf("%d: %d", (size_t)bin.tellg(), end_pos); + Rprintf("%d: %d", (int)bin.tellg(), (int)end_pos); Rcpp::stop("repositioning"); } diff --git a/src/xlsb_funs.h b/src/xlsb_funs.h index 2163ac022..9d0f1eb31 100644 --- a/src/xlsb_funs.h +++ b/src/xlsb_funs.h @@ -1742,7 +1742,7 @@ std::string CellParsedFormula(std::istream& sas, bool swapit, bool debug, int co if (debug) Rcpp::Rcout << "."; if (debug) { Rprintf("Formula cb: %d\n", val1); - Rprintf("%d: %d\n", (size_t)sas.tellg(), pos); + Rprintf("%d: %d\n", (int)sas.tellg(), (int)pos); } // this is a little risky. maybe its some kind of vector indicating the // order in which extra elements are going to be selected? @@ -1761,7 +1761,7 @@ std::string CellParsedFormula(std::istream& sas, bool swapit, bool debug, int co Rcpp::Rcout << ptgextra[cntr] << std::endl; } } else if (ptgextra.size() < (cntr + 1)) { - if (debug) Rprintf("ptgextra %d and %d\n", ptgextra.size(), cntr); + if (debug) Rprintf("ptgextra %d and %d\n", (int)ptgextra.size(), (int)cntr); }