diff --git a/src/collapse_pretty.c b/src/collapse_pretty.c index 1d39603..5af238b 100644 --- a/src/collapse_pretty.c +++ b/src/collapse_pretty.c @@ -81,7 +81,7 @@ SEXP C_collapse_array_pretty_inner(SEXP x) { error("x must character vector."); //calculate required space - int len = length(x); + size_t len = Rf_length(x); size_t nchar_total = 0; for (int i=0; i