Skip to content

fix: preserve BigInt inputs in overloaded compound operations - #2004

Merged
fglock merged 1 commit into
masterfrom
feature/list-util-maybexs-compat
Nov 9, 2026
Merged

fglock merged 1 commit into
masterfrom
feature/list-util-maybexs-compat

Conversation

@fglock

@fglock fglock commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • Avoid calling a right operand's mutating assignment overload for compound operators; let its normal binary overload provide the result.
  • Add a project-owned List::Util::PP fixture and regression coverage proving that sum and product preserve BigInt precision without mutating their inputs.
  • Record the behavior in the changelog and issue queue.

Part of #2000. This PR addresses the BigInt mutation subset; the issue remains open for the other observed List::Util::MaybeXS failures.

Validation

Avoid invoking a right operand's mutating assignment overload for compound
operators, allowing its regular binary overload to produce the result. Add
List::Util::PP sum/product regression coverage for exact BigInt results and
input preservation.

Refs #2000

Generated with [Codex](https://openai.com/codex/)

Co-Authored-By: Codex <codex@openai.com>
@fglock
fglock marked this pull request as ready for review November 9, 2026 11:54
@fglock
fglock force-pushed the feature/list-util-maybexs-compat branch from 508738f to 5b9e41f Compare November 9, 2026 11:54
@fglock
fglock merged commit c09fdf7 into master Nov 9, 2026
9 checks passed
@fglock
fglock deleted the feature/list-util-maybexs-compat branch November 9, 2026 12:33
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