diff --git a/src/connection.cpp b/src/connection.cpp index 203f885b8..90b2cc60e 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -58,7 +58,7 @@ void connection_release(cpp11::external_pointer con_) { long n = con_->use_count(); if (n > 1) { Rf_warning( - "There are %i result in use. The connection will be released when they are closed", + "There are %ld result in use. The connection will be released when they are closed", n - 1 ); }