fixedbitset icon indicating copy to clipboard operation
fixedbitset copied to clipboard

Account for when the lhs of `difference_count` has a greater length than the lhs

Open SkiFire13 opened this issue 1 year ago • 0 comments
trafficstars

zip truncates the length of the iterator to the shortest of the two, but this is incorrect for difference_count since that might ignore some bits in the tail of the lhs that should be present in the difference. The solution is to include a sum of those. The test for difference was also extended with a case that would trigger this issue.

SkiFire13 avatar Sep 17 '24 19:09 SkiFire13