diff --git a/src/MariaResultSimple.cpp b/src/MariaResultSimple.cpp index 6cd39bc9..bcbe5b77 100644 --- a/src/MariaResultSimple.cpp +++ b/src/MariaResultSimple.cpp @@ -40,7 +40,7 @@ cpp11::list MariaResultSimple::fetch(int /*n_max*/) { LOG_VERBOSE; warning("Use dbExecute() instead of dbGetQuery() for statements, and also avoid dbFetch()"); - return (SEXP)df_create(std::vector(), std::vector(), 0); + return df_create(std::vector(), std::vector(), 0); } int MariaResultSimple::n_rows_affected() { diff --git a/src/MariaUtils.cpp b/src/MariaUtils.cpp index 8d1469fa..a0354efe 100644 --- a/src/MariaUtils.cpp +++ b/src/MariaUtils.cpp @@ -42,7 +42,7 @@ void df_s3(const cpp11::list& df, const std::vector& types) { } } -cpp11::writable::list df_create(const std::vector& types, const std::vector& names, int n) { +cpp11::list df_create(const std::vector& types, const std::vector& names, int n) { R_xlen_t p = types.size(); cpp11::writable::list out(p); diff --git a/src/MariaUtils.h b/src/MariaUtils.h index 0e2fb989..43da1748 100644 --- a/src/MariaUtils.h +++ b/src/MariaUtils.h @@ -8,7 +8,7 @@ cpp11::list df_resize(const cpp11::list& df, int n); // Set up S3 classes correctly void df_s3(const cpp11::list& df, const std::vector& types); -cpp11::writable::list df_create(const std::vector& types, +cpp11::list df_create(const std::vector& types, const std::vector& names, int n);