mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Merge pull request #8068 from radarhere/lint
This commit is contained in:
commit
ca55eb50d9
|
@ -94,8 +94,8 @@ ImagingNewDIB(const char *mode, int xsize, int ysize) {
|
|||
return (ImagingDIB)ImagingError_MemoryError();
|
||||
}
|
||||
|
||||
dib->bitmap =
|
||||
CreateDIBSection(dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
|
||||
dib->bitmap = CreateDIBSection(
|
||||
dib->dc, dib->info, DIB_RGB_COLORS, (void **)&dib->bits, NULL, 0);
|
||||
if (!dib->bitmap) {
|
||||
free(dib->info);
|
||||
free(dib);
|
||||
|
|
|
@ -1005,7 +1005,8 @@ ImagingLibTiffEncode(Imaging im, ImagingCodecState state, UINT8 *buffer, int byt
|
|||
}
|
||||
|
||||
if (state->state == 1 && !clientstate->fp) {
|
||||
int read = (int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
|
||||
int read =
|
||||
(int)_tiffReadProc((thandle_t)clientstate, (tdata_t)buffer, (tsize_t)bytes);
|
||||
TRACE(
|
||||
("Buffer: %p: %c%c%c%c\n",
|
||||
buffer,
|
||||
|
|
Loading…
Reference in New Issue
Block a user