R-Lum / Luminescence

Development of the R package 'Luminescence'
http://r-lum.github.io/Luminescence/
GNU General Public License v3.0
15 stars 7 forks source link

Make read_BIN2R() not crash when forcing a version on an empty file #226

Closed mcol closed 1 month ago

mcol commented 1 month ago

The relevant changes are the addition of the two ifs and the change to n = max(0, temp.LENGTH - 4) to avoid n going negative (similarly to what was already existing for versions 6, 7, 8). Fixes #225.