Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restore: fix --sparse fix (find_non_sparse_end)
The previous version of find_non_sparse_end was broken and would eventually fail when running the randomized tests. Fix it. In the process, move the identification of trailing zero runs to a find_trailing_zeros() function, rename find_end_of_zero_run() to find_not_zero(), and augment the sanity checking. Signed-off-by: Rob Browning <rlb@defaultvalue.org> Tested-by: Rob Browning <rlb@defaultvalue.org>
- Loading branch information
Showing
1 changed file
with
63 additions
and
35 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