Skip to content

Commit

Permalink
fixed Wsign-compare warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rnuske committed Jun 13, 2024
1 parent 44aecc8 commit 657644b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/import_export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export_wkb(GEOSContextHandle_t geosCtxtH,
Rcpp::List output(vGeom.size());
int endian = native_endian();

for (int i = 0; i < vGeom.size(); i++) {
for (int i = 0; i < (int)vGeom.size(); i++) {
Rcpp::checkUserInterrupt();

size_t nSize = 0;
Expand All @@ -97,8 +97,8 @@ export_wkb(GEOSContextHandle_t geosCtxtH,
}

// shove it into R (unsigned char buffer to list of raw vectors)
Rcpp::RawVector raw((int)nSize);
for (size_t j = 0; j < (int)nSize; j++)
Rcpp::RawVector raw((unsigned)nSize);
for (size_t j = 0; j < (unsigned)nSize; j++)
raw[j] = pabyBuf[j];
output[i] = raw; // raw vector to list
}
Expand Down

0 comments on commit 657644b

Please sign in to comment.