Skip to content

Fixed warnings assigning to "unsigned char *" from "char *"#5127

Merged
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:warnings
Dec 24, 2020
Merged

Fixed warnings assigning to "unsigned char *" from "char *"#5127
hugovk merged 1 commit intopython-pillow:masterfrom
radarhere:warnings

Conversation

@radarhere
Copy link
Copy Markdown
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