Skip to content

Commit

Permalink
fix formats (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMarvin authored Nov 27, 2023
1 parent e3543b0 commit e2c4645
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/xlsb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down
4 changes: 2 additions & 2 deletions src/xlsb_funs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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);
}


Expand Down

0 comments on commit e2c4645

Please sign in to comment.