diff --git a/src/vroom_write.cc b/src/vroom_write.cc index e399acee..b3624710 100644 --- a/src/vroom_write.cc +++ b/src/vroom_write.cc @@ -270,7 +270,7 @@ void write_buf_con(const std::vector& buf, SEXP con, bool is_stdout) { if (is_stdout) { std::string out; std::copy(buf.begin(), buf.end(), std::back_inserter(out)); - Rprintf("%.*s", buf.size(), out.c_str()); + Rprintf("%.*s", (int) buf.size(), out.c_str()); } else { write_buf(buf, con); }