Skip to content

Commit

Permalink
Rf_
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jun 26, 2024
1 parent fb9b04c commit f9ad0a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/value_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PointerWrapper {

static SEXP Wrap( void* ptr) {
// TODO cache this string?
auto ptr_sexp = R_MakeExternalPtr(ptr, Rf_ScalarString(mkChar(NAME.value)), R_NilValue);
auto ptr_sexp = R_MakeExternalPtr(ptr, Rf_ScalarString(Rf_mkChar(NAME.value)), R_NilValue);
R_RegisterCFinalizerEx(ptr_sexp, Finalize, Rboolean::FALSE);
return ptr_sexp;
}
Expand All @@ -51,7 +51,7 @@ namespace ValueConversion {

template <>
SEXP ToR(const char* val) {
return Rf_ScalarString(mkChar(val));
return Rf_ScalarString(Rf_mkChar(val));
}

template <>
Expand Down Expand Up @@ -100,12 +100,12 @@ namespace ValueConversion {

template <>
SEXP ToR(duckdb_state val) {
return ScalarInteger(val);
return Rf_ScalarInteger(val);
}

template <>
SEXP ToR(duckdb_type val) {
return ScalarInteger(val);
return Rf_ScalarInteger(val);
}


Expand Down

0 comments on commit f9ad0a7

Please sign in to comment.