Skip to content

Fix (latent) issue of unused keepFrom in linearSubtract that did not …#272

Open
ifesdjeen wants to merge 1 commit intoapache:trunkfrom
ifesdjeen:fix-linear-subtract
Open

Fix (latent) issue of unused keepFrom in linearSubtract that did not …#272
ifesdjeen wants to merge 1 commit intoapache:trunkfrom
ifesdjeen:fix-linear-subtract

Conversation

@ifesdjeen
Copy link
Copy Markdown
Contributor

…respect offsets for the source

Example:

keep = {1, 3, 5, 7, 9, 11, 13, 15};
subtract = {5, 9, 13};

Subtract from offset [2, 6) = {5, 7, 9, 11}
Expected: {5, 7, 9, 11} - {5, 9, 13} = {7, 11}
Actual: {1, 3, 5}

…respect offsets for the source

Example:

  keep = {1, 3, 5, 7, 9, 11, 13, 15};
  subtract = {5, 9, 13};

  Subtract from offset [2, 6) = {5, 7, 9, 11}
  Expected: {5, 7, 9, 11} - {5, 9, 13} = {7, 11}
  Actual: {1, 3, 5}
@ifesdjeen ifesdjeen requested a review from belliottsmith April 26, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant