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 warnings assigning to "unsigned char *" from "char *" #5127

Merged
merged 1 commit into from Dec 24, 2020

Conversation

radarhere
Copy link
Member

Resolves #4586

Current warnings - https://github.com/python-pillow/Pillow/runs/1595213891#step:9:25 and https://github.com/python-pillow/Pillow/runs/1595213891#step:9:94

These changes are both for im->image. Casting from im->image to UINT8* is done multiple times in Convert.c, so this PR casts here as well.

UINT8* in = (UINT8*) imIn->image[y];

(*convert)((UINT8*) imOut->image[y], (UINT8*) imIn->image[y],

(*convert)((UINT8*) imOut->image[y], (UINT8*) imIn->image[y],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7.1.2: gcc 10 warnings
2 participants