Skip to content

Cast before multiplying - #10009

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:cast
Sep 17, 2026
Merged

radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:cast

Conversation

@radarhere

Copy link
Copy Markdown
Member

When multiplying two smaller variable types and assigning to a larger type, cast to the larger type first.

@radarhere
radarhere enabled auto-merge (squash) September 17, 2026 08:23
@radarhere
radarhere merged commit c97430b into python-pillow:main Sep 17, 2026
87 of 91 checks passed
@radarhere
radarhere deleted the cast branch September 17, 2026 09:10
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