Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed endian handling for I;16 getextrema #4457

Merged
merged 1 commit into from
Mar 25, 2020

Conversation

radarhere
Copy link
Member

Helps #4213

Using the endian handling in

Pillow/src/libImaging/Unpack.c

Lines 1042 to 1046 in b73e3dd

#ifdef WORDS_BIGENDIAN
out[0] = tmp[1]; out[1] = tmp[0];
#else
memcpy(out, &pixel, sizeof(pixel));
#endif
as inspiration, fixes getextrema I;16 operations for big-endian.

@radarhere radarhere added the Big-endian Big-endian processors label Feb 29, 2020
@python-pillow python-pillow deleted a comment from codecov bot Feb 29, 2020
@python-pillow python-pillow deleted a comment from codecov bot Feb 29, 2020
@python-pillow python-pillow deleted a comment from codecov bot Feb 29, 2020
@hugovk hugovk merged commit 332e392 into python-pillow:master Mar 25, 2020
@hugovk
Copy link
Member

hugovk commented Mar 25, 2020

Thanks!

@radarhere radarhere deleted the endian branch March 26, 2020 10:07
This was referenced Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Big-endian Big-endian processors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants