-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of inherited cells for empty prefix
Before this change, when a wad was moved from the prefix to the suffix, its list of inherited cells was unconditionally cleared. As a result, when the prefix consisted of only one wad and that wad was moved from the prefix to the suffix and then back from the suffix to the prefix, the wad ended up without a list of inherited cells while its list of inherited cells should have been the initial reader state instead. Another failure mode was that removing the last remaining wad from the prefix (without moving to the suffix) could lead to the first suffix wad having invalid inherited cells. After this change, when a wad is moved from the prefix to the suffix, its list of inherited cells is cleared only if there is still at least one wad on the prefix. Similarly, if the last remaining wad is removed from the prefix, the inherited cells of the first wad of the suffix are set to the initial state of the analyzer.
- Loading branch information
Showing
3 changed files
with
49 additions
and
22 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
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