Skip to content

Conversation

@khwilliamson
Copy link
Contributor

This p.r. adds/clarifies comments and moves code out of a loop, allowing the collapsing of code sections that each deal with overflow.

  • This set of changes does not require a perldelta entry.

And reflow.  This is in preparation for the next commit.
This makes the loop occupy less memory, but it's mainly for the next
commit which will remove a conditional each time through the loop, and
the tests want the error messages displayed in a particular order.
There are several code sections that deal with overflow; this allows
some of them to be combined, in future commits
This rationalizes a bit more the code at the end of the function to make
it a bit more readable.
This moves some code into an else, and replaces it with an UNLIKELY.

That could be eliminated if we didn't care about the order the warning
messages are raised, but the test suite does test for a particular
order, so I'm leaving it as-is.
@khwilliamson khwilliamson merged commit 58faa22 into Perl:blead Jan 5, 2026
34 checks passed
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.

2 participants