Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent writing out of bounds when final column in entirely NA
If a column is entirely NA, then firstNonNACol will return the index of the first entry of the next column. In the case where the final column is entirely NA then this will result in writing off the end of the allocated result. Fix by subtracting one from the index in this case. Hopefully fixes #234
- Loading branch information
1 parent
31b5911
commit f034f2b
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters