Skip to content

Commit bae2a96

Browse files
committed
fix can't convert
1 parent 0827f2c commit bae2a96

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

r/src/vctr_builder_base.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,11 @@ struct VctrBuilder {
138138
SEXP schema_xptr = PROTECT(
139139
R_MakeExternalPtr(const_cast<ArrowSchema*>(schema_), R_NilValue, R_NilValue));
140140
Rf_setAttrib(schema_xptr, R_ClassSymbol, nanoarrow_cls_schema);
141+
SEXP ptype_sexp = PROTECT(GetPtype());
141142

142-
SEXP call = PROTECT(Rf_lang2(fun, schema_xptr));
143+
SEXP call = PROTECT(Rf_lang3(fun, schema_xptr, ptype_sexp));
143144
Rf_eval(call, nanoarrow_ns_pkg);
144-
UNPROTECT(3);
145+
UNPROTECT(4);
145146
}
146147
};
147148

0 commit comments

Comments
 (0)