jonkeane commented on code in PR #45951: URL: https://github.com/apache/arrow/pull/45951#discussion_r2029958390
########## r/src/altrep.cpp: ########## @@ -531,7 +552,7 @@ struct AltrepFactor : public AltrepVectorBase<AltrepFactor> { SEXP copy = PROTECT(Rf_allocVector(INTSXP, size)); // copy the data from the array, through Get_region - Get_region(alt, 0, size, reinterpret_cast<int*>(DATAPTR(copy))); + Get_region(alt, 0, size, reinterpret_cast<int*>(INTEGER(copy))); Review Comment: Ah yes, thanks for that reminder, I found a few others too -- 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: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org