From 2393b8959ef477c11810f7f794e7c159d366241b Mon Sep 17 00:00:00 2001 From: Jenny Bryan Date: Tue, 28 Nov 2023 15:21:56 -0800 Subject: [PATCH] Cast this --- src/vroom_write.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }