jonkeane commented on code in PR #45951:
URL: https://github.com/apache/arrow/pull/45951#discussion_r2021496177
##########
r/src/altrep.cpp:
##########
@@ -220,7 +220,11 @@ struct AltrepVectorPrimitive : public
AltrepVectorBase<AltrepVectorPrimitive<sex
SEXP copy = PROTECT(Rf_allocVector(sexp_type, size));
// copy the data from the array, through Get_region
- Get_region(alt, 0, size, reinterpret_cast<c_type*>(DATAPTR(copy)));
+ if constexpr (std::is_same_v<c_type, double>) {
+ Get_region(alt, 0, size, reinterpret_cast<double*>(REAL(copy)));
Review Comment:
Ah, yes! Thanks (and same for the following branch too, which I got)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]