This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wrong null_count when slicing a sliced Bitmap
When pre-calculating the null_count on a Bitmap we need to start from the correct place in the underlying byte-array (i.e. take into account that we may already be looking at a slice). Currently, when we slice of a small part (so that we enter the first branch of the null_count choice), the null_count assumes that the current offset is 0, but it should not. This adds a test for this situation and fixes the issue.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
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