Skip to content

Use int64_t to calculate paste box dimensions#9703

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:paste_box
Jun 22, 2026
Merged

Use int64_t to calculate paste box dimensions#9703
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:paste_box

Conversation

@radarhere

Copy link
Copy Markdown
Member

Similar to #9686, as calculating the width and height of the Image.paste() box in C is the combination of two ints,

xsize = dx1 - dx0;
ysize = dy1 - dy0;

let's allow for a larger size.

@radarhere radarhere merged commit ceefc34 into python-pillow:main Jun 22, 2026
54 checks passed
@radarhere radarhere deleted the paste_box branch June 22, 2026 02:56
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