r-devel / rcwg

R Contribution Working Group: fostering a larger, more diverse community of contributors to R core development
https://contributor.r-project.org/working-group
68 stars 17 forks source link

Long vector and legacy FFI #41

Open waynelapierre opened 1 year ago

waynelapierre commented 1 year ago

Many R packages still use the legacy .C()/.Fortran() function to call C/Fortran codes. When a long vector is used with these packages, integer overflow may happen. However, I have never seen any warnings of this issue in these packages. I am not sure how R could deal with this situation without introducing 64-bit integer.