-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pythons list implementation has a special case to ensure that x.extend(x) is the same as x.extend(list(x)). i.e. it doesn't notice changes to the size of the list during the extend. Previously this case would not have been handled correctly by bitarray. This changes that by checking what the size of the other array is before we make any changes. This ensures both that this works correctly and also (importantly) that we don't try to write past the end of the array.
- Loading branch information
Showing
2 changed files
with
13 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