Skip to content

Commit c6fb36f

Browse files
authored
Merge pull request #8064 from radarhere/mingw
Fix type errors
2 parents 8c7be25 + 3062ec4 commit c6fb36f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/_imagingcms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ cms_profile_is_intent_supported(CmsProfileObject *self, PyObject *args) {
622622
static PyObject *
623623
cms_get_display_profile_win32(PyObject *self, PyObject *args) {
624624
char filename[MAX_PATH];
625-
cmsUInt32Number filename_size;
625+
DWORD filename_size;
626626
BOOL ok;
627627

628628
HANDLE handle = 0;

src/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ PyImaging_DrawWmf(PyObject *self, PyObject *args) {
716716
HDC dc;
717717
RECT rect;
718718
PyObject *buffer = NULL;
719-
char *ptr;
719+
void *ptr;
720720

721721
char *data;
722722
Py_ssize_t datasize;

src/libImaging/Dib.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ ImagingNewDIB(const char *mode, int xsize, int ysize) {
9595
}
9696

9797
dib->bitmap =
98-
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, &dib->bits, NULL, 0);
98+
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
9999
if (!dib->bitmap) {
100100
free(dib->info);
101101
free(dib);

src/libImaging/TiffDecode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ ImagingLibTiffEncode(Imaging im, ImagingCodecState state, UINT8 *buffer, int byt
973973
}
974974

975975
if (state->state == 1 && !clientstate->fp) {
976-
int read = (int)_tiffReadProc(clientstate, (tdata_t)buffer, (tsize_t)bytes);
976+
int read = (int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
977977
TRACE(
978978
("Buffer: %p: %c%c%c%c\n",
979979
buffer,

0 commit comments

Comments
 (0)